--- a/wp/wp-admin/admin-footer.php Tue Jun 09 11:14:17 2015 +0000
+++ b/wp/wp-admin/admin-footer.php Mon Oct 14 17:39:30 2019 +0200
@@ -9,6 +9,11 @@
// don't load directly
if ( !defined('ABSPATH') )
die('-1');
+
+/**
+ * @global string $hook_suffix
+ */
+global $hook_suffix;
?>
<div class="clear"></div></div><!-- wpbody-content -->
@@ -28,7 +33,7 @@
<?php
$text = sprintf( __( 'Thank you for creating with <a href="%s">WordPress</a>.' ), __( 'https://wordpress.org/' ) );
/**
- * Filter the "Thank you" text displayed in the admin footer.
+ * Filters the "Thank you" text displayed in the admin footer.
*
* @since 2.8.0
*
@@ -40,7 +45,7 @@
<p id="footer-upgrade" class="alignright">
<?php
/**
- * Filter the version/update text displayed in the admin footer.
+ * Filters the version/update text displayed in the admin footer.
*
* WordPress prints the current version and update information,
* using core_update_footer() at priority 10.
@@ -58,7 +63,7 @@
</div>
<?php
/**
- * Print scripts or data before the default footer scripts.
+ * Prints scripts or data before the default footer scripts.
*
* @since 1.2.0
*
@@ -67,6 +72,16 @@
do_action( 'admin_footer', '' );
/**
+ * Prints scripts and data queued for the footer.
+ *
+ * The dynamic portion of the hook name, `$hook_suffix`,
+ * refers to the global hook suffix of the current page.
+ *
+ * @since 4.6.0
+ */
+do_action( "admin_print_footer_scripts-{$hook_suffix}" );
+
+/**
* Prints any scripts and data queued for the footer.
*
* @since 2.8.0
@@ -74,16 +89,14 @@
do_action( 'admin_print_footer_scripts' );
/**
- * Print scripts or data after the default footer scripts.
+ * Prints scripts or data after the default footer scripts.
*
- * The dynamic portion of the hook name, `$GLOBALS['hook_suffix']`,
+ * The dynamic portion of the hook name, `$hook_suffix`,
* refers to the global hook suffix of the current page.
*
* @since 2.8.0
- *
- * @param string $hook_suffix The current admin page.
*/
-do_action( "admin_footer-" . $GLOBALS['hook_suffix'] );
+do_action( "admin_footer-{$hook_suffix}" );
// get_site_option() won't exist when auto upgrading from <= 2.7
if ( function_exists('get_site_option') ) {