WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/21/2016 03:16:52 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Administration: Introduce admin_print_footer_scripts-$hook_suffix", a dynamic version of the admin_print_footer_scripts hook.

This is now more consistent with the generic admin_print_scripts and the dynamic admin_print_scripts-$hook_suffix hooks fired in wp-admin/admin-header.php.

Props tfrommen.
Fixes #34334.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/template.php

    r37231 r37279  
    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 */
Note: See TracChangeset for help on using the changeset viewer.