Make WordPress Core

Ticket #34334: 34334.4.patch

File 34334.4.patch, 1.7 KB (added by tfrommen, 8 years ago)

Refresh patch for WordPress 4.6.0.

  • 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') ) {