[wp-trac] [WordPress Trac] #39419: Explicitly globalize global variables in ms-settings.php

WordPress Trac noreply at wordpress.org
Wed Dec 28 19:44:42 UTC 2016


#39419: Explicitly globalize global variables in ms-settings.php
-----------------------------+----------------------------
 Reporter:  danielbachhuber  |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Future Release
Component:  Bootstrap/Load   |    Version:
 Severity:  normal           |   Keywords:  needs-patch
  Focuses:  multisite        |
-----------------------------+----------------------------
 ms-settings.php uses and sets a few implicitly global variables:

 * $domain
 * $path
 * $blog_id
 * $site_id
 * $public
 * $table_prefix

 It would be more correct if these were explicitly globalized in the file
 header.

 Discovered in https://github.com/wp-cli/wp-cli/pull/3695

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39419>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list