[wp-trac] [WordPress Trac] #43764: CS: Fix violations for admin-header.php

WordPress Trac noreply at wordpress.org
Tue Mar 21 11:22:31 UTC 2023


#43764: CS: Fix violations for admin-header.php
----------------------------+-------------------------------
 Reporter:  marcomartins    |       Owner:  (none)
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:  5.4
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:  fixed
 Keywords:                  |     Focuses:  coding-standards
----------------------------+-------------------------------
Changes (by SergeyBiryukov):

 * status:  new => closed
 * resolution:   => fixed
 * milestone:  Awaiting Review => 5.4


Comment:

 Hi there, thanks for the ticket!

 This appears to be resolved as part of other coding standards fixes:

 * [43013] / #43776 removed the `WordPress.Variables.GlobalVariables` sniff
 from the core ruleset.
 * [45599] / #47632 addressed the hook names with hyphens.
 * [45611] / #47632 removed the error suppression operator from `header()`.
 * [47219] / #49222 switched to Yoda conditions.

 The `wp-admin/admin-header.php` file no longer displays any warnings when
 running WPCS checks.

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


More information about the wp-trac mailing list