Make WordPress Core

Ticket #34334: 34334.5.patch

File 34334.5.patch, 4.0 KB (added by tfrommen, 8 years ago)
  • src/wp-admin/includes/template.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    16511651         * but run the hooks anyway since they output JavaScript
    16521652         * or other needed content.
    16531653         */
    1654          ?>
     1654
     1655        /**
     1656         * @global string $hook_suffix
     1657         */
     1658        global $hook_suffix;
     1659        ?>
    16551660        <div class="hidden">
    16561661<?php
    16571662        /** 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" );
    16591667
    16601668        /** This action is documented in wp-admin/admin-footer.php */
    16611669        do_action( 'admin_print_footer_scripts' );
  • src/wp-includes/class-wp-customize-widgets.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    800800         */
    801801        public function print_footer_scripts() {
    802802                /** 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 */
    803806                do_action( 'admin_print_footer_scripts' );
    804807
    805808                /** This action is documented in wp-admin/admin-footer.php */
  • src/wp-admin/includes/class-wp-press-this.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    15311531        do_action( 'admin_footer' );
    15321532
    15331533        /** 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 */
    15341537        do_action( 'admin_print_footer_scripts' );
    15351538
    15361539        /** This action is documented in wp-admin/admin-footer.php */
  • src/wp-admin/admin-footer.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    99// don't load directly
    1010if ( !defined('ABSPATH') )
    1111        die('-1');
     12
     13/**
     14 * @global string $hook_suffix
     15 */
     16global $hook_suffix;
    1217?>
    1318
    1419<div class="clear"></div></div><!-- wpbody-content -->
     
    6772do_action( 'admin_footer', '' );
    6873
    6974/**
     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 */
     85do_action( "admin_print_footer_scripts-$hook_suffix" );
     86
     87/**
    7088 * Prints any scripts and data queued for the footer.
    7189 *
    7290 * @since 2.8.0
     
    7694/**
    7795 * Print scripts or data after the default footer scripts.
    7896 *
    79  * The dynamic portion of the hook name, `$GLOBALS['hook_suffix']`,
     97 * The dynamic portion of the hook name, `$hook_suffix`,
    8098 * refers to the global hook suffix of the current page.
    8199 *
    82100 * @since 2.8.0
     
    84102 * @global string $hook_suffix
    85103 * @param string $hook_suffix The current admin page.
    86104 */
    87 do_action( "admin_footer-" . $GLOBALS['hook_suffix'] );
     105do_action( "admin_footer-$hook_suffix" );
    88106
    89107// get_site_option() won't exist when auto upgrading from <= 2.7
    90108if ( function_exists('get_site_option') ) {