[wp-trac] [WordPress Trac] #37123: Explicitly globalize $wpdb in either wp-settings.php or ms-settings.php

WordPress Trac noreply at wordpress.org
Sun Jun 26 10:05:22 UTC 2016


#37123: Explicitly globalize $wpdb in either wp-settings.php or ms-settings.php
--------------------------------------+-----------------------------
 Reporter:  danielbachhuber           |       Owner:  SergeyBiryukov
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  4.6
Component:  Bootstrap/Load            |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  needs-patch dev-feedback  |     Focuses:
--------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:   => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"37864"]:
 {{{
 #!CommitTicketReference repository="" revision="37864"
 Database: Explicitly globalize `$wpdb` in `wp-settings.php` in case
 WordPress isn't loaded in global scope.

 See [18993] for `$table_prefix`.

 Props danielbachhuber.
 Fixes #37123.
 }}}

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


More information about the wp-trac mailing list