WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/22/2019 07:07:57 PM (8 weeks ago)
Author:
desrosj
Message:

Coding Standards: Dynamic hooks should be named using interpolation not concatenation.

Props arena, desrosj.
Fixes #47052.

File:
1 edited

Legend:

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

    r45873 r45881  
    19591959
    19601960    /** This action is documented in wp-admin/admin-header.php */
    1961     do_action( "admin_print_styles-$hook_suffix" );  // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
     1961    do_action( "admin_print_styles-{$hook_suffix}" );  // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    19621962
    19631963    /** This action is documented in wp-admin/admin-header.php */
     
    19651965
    19661966    /** This action is documented in wp-admin/admin-header.php */
    1967     do_action( "admin_print_scripts-$hook_suffix" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
     1967    do_action( "admin_print_scripts-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    19681968
    19691969    /** This action is documented in wp-admin/admin-header.php */
     
    19711971
    19721972    /** This action is documented in wp-admin/admin-header.php */
    1973     do_action( "admin_head-$hook_suffix" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
     1973    do_action( "admin_head-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    19741974
    19751975    /** This action is documented in wp-admin/admin-header.php */
     
    20282028
    20292029    /** This action is documented in wp-admin/admin-footer.php */
    2030     do_action( "admin_print_footer_scripts-$hook_suffix" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
     2030    do_action( "admin_print_footer_scripts-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    20312031
    20322032    /** This action is documented in wp-admin/admin-footer.php */
Note: See TracChangeset for help on using the changeset viewer.