Make WordPress Core


Ignore:
Timestamp:
07/05/2019 01:44:41 AM (5 years ago)
Author:
pento
Message:

Coding Standards: Mark the handful of hook names with uppercase characters or hyphens as ignored.

See #47632.

File:
1 edited

Legend:

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

    r45440 r45599  
    229229         * @since 2.1.0
    230230         */
    231         do_action( "load-{$page_hook}" );
     231        do_action( "load-{$page_hook}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    232232        if ( ! isset( $_GET['noheader'] ) ) {
    233233            require_once( ABSPATH . 'wp-admin/admin-header.php' );
     
    273273         * @since 1.5.0
    274274         */
    275         do_action( "load-{$plugin_page}" );
     275        do_action( "load-{$plugin_page}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    276276
    277277        if ( ! isset( $_GET['noheader'] ) ) {
     
    314314     * @since 3.5.0
    315315     */
    316     do_action( "load-importer-{$importer}" );
     316    do_action( "load-importer-{$importer}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    317317
    318318    $parent_file  = 'tools.php';
     
    363363     * @since 2.1.0
    364364     */
    365     do_action( "load-{$pagenow}" );
     365    do_action( "load-{$pagenow}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    366366
    367367    /*
     
    371371    if ( $typenow == 'page' ) {
    372372        if ( $pagenow == 'post-new.php' ) {
    373             do_action( 'load-page-new.php' );
     373            do_action( 'load-page-new.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    374374        } elseif ( $pagenow == 'post.php' ) {
    375             do_action( 'load-page.php' );
     375            do_action( 'load-page.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    376376        }
    377377    } elseif ( $pagenow == 'edit-tags.php' ) {
    378378        if ( $taxnow == 'category' ) {
    379             do_action( 'load-categories.php' );
     379            do_action( 'load-categories.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    380380        } elseif ( $taxnow == 'link_category' ) {
    381             do_action( 'load-edit-link-categories.php' );
     381            do_action( 'load-edit-link-categories.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    382382        }
    383383    } elseif ( 'term.php' === $pagenow ) {
    384         do_action( 'load-edit-tags.php' );
     384        do_action( 'load-edit-tags.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    385385    }
    386386}
Note: See TracChangeset for help on using the changeset viewer.