[wp-trac] [WordPress Trac] #35560: Use of undefined constant DB_USER - assumed 'DB_USER'

WordPress Trac noreply at wordpress.org
Sun Feb 11 18:46:50 UTC 2018


#35560: Use of undefined constant DB_USER - assumed 'DB_USER'
--------------------------+-----------------------------
 Reporter:  mariusvw      |       Owner:  SergeyBiryukov
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  5.0
Component:  Database      |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------------
Changes (by SergeyBiryukov):

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


Comment:

 In [changeset:"42701"]:
 {{{
 #!CommitTicketReference repository="" revision="42701"
 Database: In `require_wp_db()`, check if database constants are defined
 before using them.

 Otherwise, `wp-admin/setup-config.php` triggers an undefined constant
 warning in PHP 7.2.

 Props mariusvw, jryancard for initial patch.
 Fixes #35560.
 }}}

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


More information about the wp-trac mailing list