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

WordPress Trac noreply at wordpress.org
Fri Oct 12 11:15:49 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):

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


Comment:

 In [changeset:"43722" 43722]:
 {{{
 #!CommitTicketReference repository="" revision="43722"
 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.
 Merges [42701] to the 5.0 branch.
 Fixes #35560.
 }}}

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


More information about the wp-trac mailing list