Make WordPress Core


Ignore:
Timestamp:
08/22/2016 06:24:48 PM (9 years ago)
Author:
DrewAPicture
Message:

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.

File:
1 edited

Legend:

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

    r38022 r38307  
    8484 * @param string $hook_suffix The current admin page.
    8585 */
    86 do_action( "admin_print_footer_scripts-$hook_suffix" );
     86do_action( "admin_print_footer_scripts-{$hook_suffix}" );
    8787
    8888/**
     
    104104 * @param string $hook_suffix The current admin page.
    105105 */
    106 do_action( "admin_footer-$hook_suffix" );
     106do_action( "admin_footer-{$hook_suffix}" );
    107107
    108108// get_site_option() won't exist when auto upgrading from <= 2.7
Note: See TracChangeset for help on using the changeset viewer.