Changeset 37279
- Timestamp:
- 04/21/2016 03:16:52 PM (8 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/admin-footer.php
r32642 r37279 10 10 if ( !defined('ABSPATH') ) 11 11 die('-1'); 12 13 /** 14 * @global string $hook_suffix 15 */ 16 global $hook_suffix; 12 17 ?> 13 18 … … 68 73 69 74 /** 75 * Prints scripts and data queued for the footer. 76 * 77 * The dynamic portion of the hook name, `$hook_suffix`, 78 * refers to the global hook suffix of the current page. 79 * 80 * @since 4.6.0 81 * 82 * @global string $hook_suffix 83 * @param string $hook_suffix The current admin page. 84 */ 85 do_action( "admin_print_footer_scripts-$hook_suffix" ); 86 87 /** 70 88 * Prints any scripts and data queued for the footer. 71 89 * … … 77 95 * Print scripts or data after the default footer scripts. 78 96 * 79 * The dynamic portion of the hook name, `$ GLOBALS['hook_suffix']`,97 * The dynamic portion of the hook name, `$hook_suffix`, 80 98 * refers to the global hook suffix of the current page. 81 99 * … … 85 103 * @param string $hook_suffix The current admin page. 86 104 */ 87 do_action( "admin_footer- " . $GLOBALS['hook_suffix']);105 do_action( "admin_footer-$hook_suffix" ); 88 106 89 107 // get_site_option() won't exist when auto upgrading from <= 2.7 -
trunk/src/wp-admin/includes/class-wp-press-this.php
r36970 r37279 1532 1532 1533 1533 /** This action is documented in wp-admin/admin-footer.php */ 1534 do_action( 'admin_print_footer_scripts-press-this.php' ); 1535 1536 /** This action is documented in wp-admin/admin-footer.php */ 1534 1537 do_action( 'admin_print_footer_scripts' ); 1535 1538 -
trunk/src/wp-admin/includes/template.php
r37231 r37279 1652 1652 * or other needed content. 1653 1653 */ 1654 ?> 1654 1655 /** 1656 * @global string $hook_suffix 1657 */ 1658 global $hook_suffix; 1659 ?> 1655 1660 <div class="hidden"> 1656 1661 <?php 1657 1662 /** This action is documented in wp-admin/admin-footer.php */ 1658 do_action( 'admin_footer', '' ); 1663 do_action( 'admin_footer', $hook_suffix ); 1664 1665 /** This action is documented in wp-admin/admin-footer.php */ 1666 do_action( "admin_print_footer_scripts-$hook_suffix" ); 1659 1667 1660 1668 /** This action is documented in wp-admin/admin-footer.php */ -
trunk/src/wp-includes/class-wp-customize-widgets.php
r37166 r37279 801 801 public function print_footer_scripts() { 802 802 /** This action is documented in wp-admin/admin-footer.php */ 803 do_action( 'admin_print_footer_scripts-widgets.php' ); 804 805 /** This action is documented in wp-admin/admin-footer.php */ 803 806 do_action( 'admin_print_footer_scripts' ); 804 807
Note: See TracChangeset
for help on using the changeset viewer.