[wp-trac] [WordPress Trac] #56268: Rename wp-db.php to class-wpdb.php

WordPress Trac noreply at wordpress.org
Thu Jul 21 21:37:17 UTC 2022


#56268: Rename wp-db.php to class-wpdb.php
----------------------------+-------------------------------
 Reporter:  SergeyBiryukov  |       Owner:  SergeyBiryukov
     Type:  enhancement     |      Status:  closed
 Priority:  normal          |   Milestone:  6.1
Component:  Database        |     Version:
 Severity:  normal          |  Resolution:  fixed
 Keywords:                  |     Focuses:  coding-standards
----------------------------+-------------------------------

Comment (by SergeyBiryukov):

 In [changeset:"53755" 53755]:
 {{{
 #!CommitTicketReference repository="" revision="53755"
 Coding Standards: Check if the `_deprecated_file()` function exists in
 `wp-db.php`.

 This avoids a fatal error if the file is included directly outside of
 WordPress core, e.g. by HyperDB.

 Additionally, replace `WPINC` with `wp-includes`, as the constant may not
 be defined yet in that context.

 Follow-up to [53749], [53750].

 See #56268, #55647.
 }}}

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


More information about the wp-trac mailing list