[wp-trac] [WordPress Trac] #55647: Coding Standards fixes for WP 6.1

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

#55647: Coding Standards fixes for WP 6.1
 Reporter:  costdev         |       Owner:  (none)
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  6.1
Component:  General         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  coding-standards

Comment (by SergeyBiryukov):

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

 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/55647#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list