[wp-trac] [WordPress Trac] #36210: $table_prefix should default to "wp_"

WordPress Trac noreply at wordpress.org
Tue Mar 15 01:24:57 UTC 2016


#36210: $table_prefix should default to "wp_"
-------------------------+----------------------
 Reporter:  Shelob9      |       Owner:
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  Database     |     Version:  2.5
 Severity:  normal       |  Resolution:  wontfix
 Keywords:               |     Focuses:
-------------------------+----------------------

Comment (by rmccue):

 Replying to [comment:4 Shelob9]:
 > All existing sites without a prefix set do not work.

 I think I'd prefer that. If an error occurs that causes table_prefix to
 not be set correctly, defaulting it could be dangerous. If I have two
 installs, and I accidentally misspell the var as `$tabel_prefix` (e.g.) in
 the latter, I'd prefer to get an error than risk setting data on the wrong
 tables.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36210#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list