Index: src/wp-admin/includes/template.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- src/wp-admin/includes/template.php	(date 1460950691000)
+++ src/wp-admin/includes/template.php	(revision )
@@ -1651,11 +1651,19 @@
 	 * 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' );
Index: src/wp-includes/class-wp-customize-widgets.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- src/wp-includes/class-wp-customize-widgets.php	(date 1460950691000)
+++ src/wp-includes/class-wp-customize-widgets.php	(revision )
@@ -800,6 +800,9 @@
 	 */
 	public function print_footer_scripts() {
 		/** This action is documented in wp-admin/admin-footer.php */
+		do_action( 'admin_print_footer_scripts-widgets.php' );
+
+		/** This action is documented in wp-admin/admin-footer.php */
 		do_action( 'admin_print_footer_scripts' );
 
 		/** This action is documented in wp-admin/admin-footer.php */
Index: src/wp-admin/includes/class-wp-press-this.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- src/wp-admin/includes/class-wp-press-this.php	(date 1460950691000)
+++ src/wp-admin/includes/class-wp-press-this.php	(revision )
@@ -1531,6 +1531,9 @@
 	do_action( 'admin_footer' );
 
 	/** This action is documented in wp-admin/admin-footer.php */
+	do_action( 'admin_print_footer_scripts-press-this.php' );
+
+	/** This action is documented in wp-admin/admin-footer.php */
 	do_action( 'admin_print_footer_scripts' );
 
 	/** This action is documented in wp-admin/admin-footer.php */
Index: src/wp-admin/admin-footer.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- src/wp-admin/admin-footer.php	(date 1460950691000)
+++ src/wp-admin/admin-footer.php	(revision )
@@ -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 -->
@@ -67,6 +72,19 @@
 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
+ *
+ * @global string $hook_suffix
+ * @param string $hook_suffix The current admin page.
+ */
+do_action( "admin_print_footer_scripts-$hook_suffix" );
+
+/**
  * Prints any scripts and data queued for the footer.
  *
  * @since 2.8.0
@@ -76,7 +94,7 @@
 /**
  * Print 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
@@ -84,7 +102,7 @@
  * @global string $hook_suffix
  * @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') ) {
