[wp-trac] [WordPress Trac] #16756: PHP5-port - Access Violations on wpdb::$prefix

WordPress Trac noreply at wordpress.org
Thu Aug 15 02:56:21 UTC 2013


#16756: PHP5-port - Access Violations on wpdb::$prefix
-------------------------+-----------------------
 Reporter:  hakre        |       Owner:
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  3.7
Component:  Database     |     Version:  3.1
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+-----------------------

Comment (by nacin):

 We also have $wpdb->get_blog_prefix() (with no arguments). Maybe all usage
 of $wpdb->prefix should start wrapping that function — potentially even
 having it set via a magic getter. (They essentially are already linked,
 any methods that change the prefix sets $wpdb->prefix.)

 At that point, should $wpdb->prefix even be recommended? I'd wonder if
 keeping it as @access private (as in, "please don't use it") is OK.

 I dunno, maybe ryan has an opinion as the two of us shaped a lot of this
 back in 3.0.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/16756#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list