Make WordPress Core

Ticket #34334: 34334.2.patch

File 34334.2.patch, 1.6 KB (added by tfrommen, 8 years ago)

Refreshed patch for WordPress 4.5.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
     13global $hook_suffix;
    1214?>
    1315
    1416<div class="clear"></div></div><!-- wpbody-content -->
     
    6769do_action( 'admin_footer', '' );
    6870
    6971/**
     72 * Prints scripts and data queued for the footer.
     73 *
     74 * The dynamic portion of the hook name, `$hook_suffix`,
     75 * refers to the global hook suffix of the current page.
     76 *
     77 * @since 4.5.0
     78 *
     79 * @global string $hook_suffix
     80 * @param string $hook_suffix The current admin page.
     81 */
     82do_action( "admin_print_footer_scripts-$hook_suffix" );
     83
     84/**
    7085 * Prints any scripts and data queued for the footer.
    7186 *
    7287 * @since 2.8.0
     
    7691/**
    7792 * Print scripts or data after the default footer scripts.
    7893 *
    79  * The dynamic portion of the hook name, `$GLOBALS['hook_suffix']`,
     94 * The dynamic portion of the hook name, `$hook_suffix`,
    8095 * refers to the global hook suffix of the current page.
    8196 *
    8297 * @since 2.8.0
     
    8499 * @global string $hook_suffix
    85100 * @param string $hook_suffix The current admin page.
    86101 */
    87 do_action( "admin_footer-" . $GLOBALS['hook_suffix'] );
     102do_action( "admin_footer-$hook_suffix" );
    88103
    89104// get_site_option() won't exist when auto upgrading from <= 2.7
    90105if ( function_exists('get_site_option') ) {