[wp-trac] [WordPress Trac] #54028: Fix improper use of the hooks API

WordPress Trac noreply at wordpress.org
Fri Dec 17 15:38:59 UTC 2021


#54028: Fix improper use of the hooks API
--------------------------+---------------------
 Reporter:  azaozz        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  6.0
Component:  General       |     Version:  5.8
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  docs
--------------------------+---------------------

Comment (by johnregan3):

 @donmhico I have time to finish up this ticket if that's okay with you.

 I've found a few other instances that need to be updated as well.
 Here's the list I have so far (including instances mentioned above)

 **add_filter()**
 https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin
 /edit-form-blocks.php#L32
 https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin
 /options-privacy.php#L21
 https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin
 /privacy-policy-guide.php#L20
 https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes
 /script-loader.php#L2460
 https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-
 includes/sitemaps/class-wp-sitemaps-renderer.php#L254

 (This one is in a docblock, but it's a bad example)
 https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-
 includes/theme.php#L1999

 **add_action()**
 https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes
 /block-supports/layout.php#L194
 https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes
 /block-supports/elements.php#L76

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


More information about the wp-trac mailing list