[wp-trac] [WordPress Trac] #36567: Allow overriding constants in testing framework

WordPress Trac noreply at wordpress.org
Wed Apr 20 05:33:37 UTC 2016


#36567: Allow overriding constants in testing framework
------------------------------+------------------------
 Reporter:  rmccue            |       Owner:
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  4.6
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  needs-patch       |     Focuses:  multisite
------------------------------+------------------------

Comment (by pento):

 Replying to [comment:4 jeremyfelt]:
 > So I guess the first question is: Why do we not use `is_multisite()` in
 [https://core.trac.wordpress.org/browser/trunk/src/wp-includes/wp-
 db.php#L946 $wpdb->get_blog_prefix], because changing that appears to fix
 this and allows the tests to install fresh if you recreate the DB.

 [https://mu.trac.wordpress.org/browser/trunk/wp-includes/wp-db.php#L486
 This] became [https://core.trac.wordpress.org/browser/trunk/wp-includes
 /wp-db.php?rev=12667#L492 that] when MU was merged, then @nacin
 [changeset:13121 added] an `is_multisite()` check, then nothing has
 changed since then, because we're all too scared to touch that code.

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


More information about the wp-trac mailing list