mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Hooks: Standardize naming of dynamic hooks to use interpolation vs concatenation.
Benefits gained in discoverability and self-documentation throughout core trump the negligible performance hit in using interpolation in hook names. Props ramiy. See #37748. git-svn-id: https://develop.svn.wordpress.org/trunk@38307 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -83,7 +83,7 @@ do_action( 'admin_footer', '' );
|
||||
*
|
||||
* @param string $hook_suffix The current admin page.
|
||||
*/
|
||||
do_action( "admin_print_footer_scripts-$hook_suffix" );
|
||||
do_action( "admin_print_footer_scripts-{$hook_suffix}" );
|
||||
|
||||
/**
|
||||
* Prints any scripts and data queued for the footer.
|
||||
@@ -103,7 +103,7 @@ do_action( 'admin_print_footer_scripts' );
|
||||
* @global string $hook_suffix
|
||||
* @param string $hook_suffix The current admin page.
|
||||
*/
|
||||
do_action( "admin_footer-$hook_suffix" );
|
||||
do_action( "admin_footer-{$hook_suffix}" );
|
||||
|
||||
// get_site_option() won't exist when auto upgrading from <= 2.7
|
||||
if ( function_exists('get_site_option') ) {
|
||||
|
||||
Reference in New Issue
Block a user