[wp-trac] [WordPress Trac] #34334: Add a dynamic version of the admin_print_footer_scripts hook

WordPress Trac noreply at wordpress.org
Sat Oct 17 16:54:29 UTC 2015


#34334: Add a dynamic version of the admin_print_footer_scripts hook
-------------------------+------------------------------
 Reporter:  tfrommen     |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:
 Severity:  trivial      |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------------------

Comment (by swissspidy):

 > admin-footer.php fires a generic action hook,
 `admin_print_footer_scripts`, which does not get the `$hook_suffix` passed
 as a parameter.

 Why not pass the `$hook_suffix` as a parameter then? That's easier to read
 and debug than dynamic hooks.

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


More information about the wp-trac mailing list