mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Administration: Introduce admin_print_footer_scripts-$hook_suffix", a dynamic version of the admin_print_footer_scripts hook.
This is now more consistent with the generic `admin_print_scripts` and the dynamic `admin_print_scripts-$hook_suffix` hooks fired in `wp-admin/admin-header.php`. Props tfrommen. Fixes #34334. git-svn-id: https://develop.svn.wordpress.org/trunk@37279 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1651,11 +1651,19 @@ function iframe_footer() {
|
||||
* but run the hooks anyway since they output JavaScript
|
||||
* or other needed content.
|
||||
*/
|
||||
?>
|
||||
|
||||
/**
|
||||
* @global string $hook_suffix
|
||||
*/
|
||||
global $hook_suffix;
|
||||
?>
|
||||
<div class="hidden">
|
||||
<?php
|
||||
/** This action is documented in wp-admin/admin-footer.php */
|
||||
do_action( 'admin_footer', '' );
|
||||
do_action( 'admin_footer', $hook_suffix );
|
||||
|
||||
/** This action is documented in wp-admin/admin-footer.php */
|
||||
do_action( "admin_print_footer_scripts-$hook_suffix" );
|
||||
|
||||
/** This action is documented in wp-admin/admin-footer.php */
|
||||
do_action( 'admin_print_footer_scripts' );
|
||||
|
||||
Reference in New Issue
Block a user