WordPress.org

Make WordPress Core

Changeset 45599


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

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

See #47632.

Location:
trunk/src
Files:
33 edited

Legend:

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

    r42343 r45599  
    8181 * @since 4.6.0
    8282 */
    83 do_action( "admin_print_footer_scripts-{$hook_suffix}" );
     83do_action( "admin_print_footer_scripts-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    8484
    8585/**
     
    9898 * @since 2.8.0
    9999 */
    100 do_action( "admin_footer-{$hook_suffix}" );
     100do_action( "admin_footer-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    101101
    102102// get_site_option() won't exist when auto upgrading from <= 2.7
  • trunk/src/wp-admin/admin-header.php

    r45175 r45599  
    109109 * @since 2.6.0
    110110 */
    111 do_action( "admin_print_styles-{$hook_suffix}" );
     111do_action( "admin_print_styles-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    112112
    113113/**
     
    123123 * @since 2.1.0
    124124 */
    125 do_action( "admin_print_scripts-{$hook_suffix}" );
     125do_action( "admin_print_scripts-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    126126
    127127/**
     
    140140 * @since 2.1.0
    141141 */
    142 do_action( "admin_head-{$hook_suffix}" );
     142do_action( "admin_head-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    143143
    144144/**
  • 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}
  • trunk/src/wp-admin/edit-comments.php

    r45583 r45599  
    107107         * @param array  $items        The items to take the action on.
    108108         */
    109         $redirect_to = apply_filters( "handle_bulk_actions-{$screen}", $redirect_to, $doaction, $comment_ids );
     109        $redirect_to = apply_filters( "handle_bulk_actions-{$screen}", $redirect_to, $doaction, $comment_ids ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    110110    }
    111111
  • trunk/src/wp-admin/edit-tags.php

    r45140 r45599  
    202202        $tags = (array) $_REQUEST['delete_tags'];
    203203        /** This action is documented in wp-admin/edit-comments.php */
    204         $location = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $location, $wp_list_table->current_action(), $tags );
     204        $location = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $location, $wp_list_table->current_action(), $tags );  // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    205205        break;
    206206}
     
    614614 * @param string $taxonomy The taxonomy name.
    615615 */
    616 do_action( "after-{$taxonomy}-table", $taxonomy );
     616do_action( "after-{$taxonomy}-table", $taxonomy );  // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    617617
    618618if ( $can_edit_terms ) {
  • trunk/src/wp-admin/edit.php

    r45583 r45599  
    184184        default:
    185185            /** This action is documented in wp-admin/edit-comments.php */
    186             $sendback = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $sendback, $doaction, $post_ids );
     186            $sendback = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $sendback, $doaction, $post_ids ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    187187            break;
    188188    }
  • trunk/src/wp-admin/includes/ajax-actions.php

    r45583 r45599  
    21832183     * @since 2.8.0
    21842184     */
    2185     do_action( 'load-widgets.php' );
     2185    do_action( 'load-widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    21862186
    21872187    /**
     
    21902190     * @since 2.8.0
    21912191     */
    2192     do_action( 'widgets.php' );
     2192    do_action( 'widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    21932193
    21942194    /** This action is documented in wp-admin/widgets.php */
     
    22932293    unset( $_POST['removeinactivewidgets'], $_POST['action'] );
    22942294    /** This action is documented in wp-admin/includes/ajax-actions.php */
    2295     do_action( 'load-widgets.php' );
     2295    do_action( 'load-widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    22962296    /** This action is documented in wp-admin/includes/ajax-actions.php */
    2297     do_action( 'widgets.php' );
     2297    do_action( 'widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    22982298    /** This action is documented in wp-admin/widgets.php */
    22992299    do_action( 'sidebar_admin_setup' );
  • trunk/src/wp-admin/includes/class-wp-list-table.php

    r45583 r45599  
    452452             * @param string[] $actions An array of the available bulk actions.
    453453             */
    454             $this->_actions = apply_filters( "bulk_actions-{$this->screen->id}", $this->_actions );
     454            $this->_actions = apply_filters( "bulk_actions-{$this->screen->id}", $this->_actions );  // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    455455            $two            = '';
    456456        } else {
  • trunk/src/wp-admin/includes/dashboard.php

    r45583 r45599  
    15371537     * @param array  $response An array containing web browser information. See `wp_check_browser_version()`.
    15381538     */
    1539     echo apply_filters( 'browse-happy-notice', $notice, $response );
     1539    echo apply_filters( 'browse-happy-notice', $notice, $response );  // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    15401540}
    15411541
  • trunk/src/wp-admin/includes/media.php

    r45583 r45599  
    520520     * @since 2.9.0
    521521     */
    522     do_action( 'admin_print_styles-media-upload-popup' );
     522    do_action( 'admin_print_styles-media-upload-popup' );  // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    523523
    524524    /** This action is documented in wp-admin/admin-header.php */
     
    530530     * @since 2.9.0
    531531     */
    532     do_action( 'admin_print_scripts-media-upload-popup' );
     532    do_action( 'admin_print_scripts-media-upload-popup' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    533533
    534534    /** This action is documented in wp-admin/admin-header.php */
     
    541541     * @since 2.9.0
    542542     */
    543     do_action( 'admin_head-media-upload-popup' );
     543    do_action( 'admin_head-media-upload-popup' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    544544
    545545    /** This action is documented in wp-admin/admin-header.php */
     
    20052005     * @since 2.6.0
    20062006     */
    2007     do_action( 'pre-upload-ui' );
     2007    do_action( 'pre-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    20082008
    20092009    $post_params = array(
     
    20842084     * @since 3.3.0
    20852085     */
    2086     do_action( 'pre-plupload-upload-ui' );
     2086    do_action( 'pre-plupload-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    20872087    ?>
    20882088<div id="drag-drop-area">
     
    21002100     * @since 3.3.0
    21012101     */
    2102     do_action( 'post-plupload-upload-ui' );
     2102    do_action( 'post-plupload-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    21032103    ?>
    21042104</div>
     
    21112111     * @since 2.6.0
    21122112     */
    2113     do_action( 'pre-html-upload-ui' );
     2113    do_action( 'pre-html-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    21142114    ?>
    21152115    <p id="async-upload-wrap">
     
    21262126     * @since 2.6.0
    21272127     */
    2128     do_action( 'post-html-upload-ui' );
     2128    do_action( 'post-html-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    21292129    ?>
    21302130</div>
     
    21402140     * @since 2.6.0
    21412141     */
    2142     do_action( 'post-upload-ui' );
     2142    do_action( 'post-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    21432143}
    21442144
  • trunk/src/wp-admin/includes/meta-boxes.php

    r45441 r45599  
    776776     * @param WP_Post $post WP_Post object of the current post.
    777777     */
    778     do_action( 'post_comment_status_meta_box-options', $post );
     778    do_action( 'post_comment_status_meta_box-options', $post );  // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    779779    ?>
    780780</p>
  • trunk/src/wp-admin/includes/misc.php

    r45583 r45599  
    660660                 * @param int      $value  The number of rows to use.
    661661                 */
    662                 $value = apply_filters( 'set-screen-option', false, $option, $value );
     662                $value = apply_filters( 'set-screen-option', false, $option, $value );  // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    663663
    664664                if ( false === $value ) {
  • trunk/src/wp-admin/includes/template.php

    r45583 r45599  
    19251925
    19261926    /** This action is documented in wp-admin/admin-header.php */
    1927     do_action( "admin_print_styles-$hook_suffix" );
     1927    do_action( "admin_print_styles-$hook_suffix" );  // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    19281928
    19291929    /** This action is documented in wp-admin/admin-header.php */
     
    19311931
    19321932    /** This action is documented in wp-admin/admin-header.php */
    1933     do_action( "admin_print_scripts-$hook_suffix" );
     1933    do_action( "admin_print_scripts-$hook_suffix" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    19341934
    19351935    /** This action is documented in wp-admin/admin-header.php */
     
    19371937
    19381938    /** This action is documented in wp-admin/admin-header.php */
    1939     do_action( "admin_head-$hook_suffix" );
     1939    do_action( "admin_head-$hook_suffix" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    19401940
    19411941    /** This action is documented in wp-admin/admin-header.php */
     
    19981998
    19991999    /** This action is documented in wp-admin/admin-footer.php */
    2000     do_action( "admin_print_footer_scripts-$hook_suffix" );
     2000    do_action( "admin_print_footer_scripts-$hook_suffix" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    20012001
    20022002    /** This action is documented in wp-admin/admin-footer.php */
  • trunk/src/wp-admin/includes/update.php

    r45583 r45599  
    508508         * }
    509509         */
    510         do_action( "in_plugin_update_message-{$file}", $plugin_data, $response );
     510        do_action( "in_plugin_update_message-{$file}", $plugin_data, $response ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    511511
    512512        echo '</p></div></td></tr>';
     
    647647     * }
    648648     */
    649     do_action( "in_theme_update_message-{$theme_key}", $theme, $response );
     649    do_action( "in_theme_update_message-{$theme_key}", $theme, $response ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    650650
    651651    echo '</p></div></td></tr>';
  • trunk/src/wp-admin/link-manager.php

    r45583 r45599  
    3434    } else {
    3535        /** This action is documented in wp-admin/edit-comments.php */
    36         $redirect_to = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $redirect_to, $doaction, $bulklinks );
     36        $redirect_to = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $redirect_to, $doaction, $bulklinks ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    3737    }
    3838    wp_redirect( $redirect_to );
  • trunk/src/wp-admin/network/site-themes.php

    r43571 r45599  
    137137                 * @param int    $site_id      The site ID.
    138138                 */
    139                 $referer = apply_filters( "handle_network_bulk_actions-{$screen}", $referer, $action, $themes, $id );
     139                $referer = apply_filters( "handle_network_bulk_actions-{$screen}", $referer, $action, $themes, $id ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    140140            } else {
    141141                $action = 'error';
  • trunk/src/wp-admin/network/site-users.php

    r45416 r45599  
    180180            $userids = $_REQUEST['users'];
    181181            /** This action is documented in wp-admin/network/site-themes.php */
    182             $referer = apply_filters( 'handle_network_bulk_actions-' . get_current_screen()->id, $referer, $action, $userids, $id );
     182            $referer = apply_filters( 'handle_network_bulk_actions-' . get_current_screen()->id, $referer, $action, $userids, $id ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    183183            $update  = $action;
    184184            break;
  • trunk/src/wp-admin/network/sites.php

    r43019 r45599  
    212212                    $blogs       = (array) $_POST['allblogs'];
    213213                    /** This action is documented in wp-admin/network/site-themes.php */
    214                     $redirect_to = apply_filters( 'handle_network_bulk_actions-' . get_current_screen()->id, $redirect_to, $doaction, $blogs, $id );
     214                    $redirect_to = apply_filters( 'handle_network_bulk_actions-' . get_current_screen()->id, $redirect_to, $doaction, $blogs, $id ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    215215                    wp_safe_redirect( $redirect_to );
    216216                    exit();
  • trunk/src/wp-admin/network/themes.php

    r45597 r45599  
    218218
    219219            /** This action is documented in wp-admin/network/site-themes.php */
    220             $referer = apply_filters( 'handle_network_bulk_actions-' . get_current_screen()->id, $referer, $action, $themes );
     220            $referer = apply_filters( 'handle_network_bulk_actions-' . get_current_screen()->id, $referer, $action, $themes ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    221221
    222222            wp_safe_redirect( $referer );
  • trunk/src/wp-admin/network/users.php

    r43571 r45599  
    103103                    $user_ids = (array) $_POST['allusers'];
    104104                    /** This action is documented in wp-admin/network/site-themes.php */
    105                     $sendback = apply_filters( 'handle_network_bulk_actions-' . get_current_screen()->id, $sendback, $doaction, $user_ids );
     105                    $sendback = apply_filters( 'handle_network_bulk_actions-' . get_current_screen()->id, $sendback, $doaction, $user_ids ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    106106
    107107                    wp_safe_redirect( $sendback );
  • trunk/src/wp-admin/plugins.php

    r45597 r45599  
    419419
    420420                /** This action is documented in wp-admin/edit-comments.php */
    421                 $sendback = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $sendback, $action, $plugins );
     421                $sendback = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $sendback, $action, $plugins );  // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    422422                wp_safe_redirect( $sendback );
    423423                exit;
  • trunk/src/wp-admin/update-core.php

    r45583 r45599  
    886886     * @since 3.2.0
    887887     */
    888     do_action( "update-core-custom_{$action}" );
    889 }
     888    do_action( "update-core-custom_{$action}" );  // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
     889}
  • trunk/src/wp-admin/update.php

    r43571 r45599  
    296296         * @since 2.8.0
    297297         */
    298         do_action( "update-custom_{$action}" );
     298        do_action( "update-custom_{$action}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    299299    }
    300300}
  • trunk/src/wp-admin/upload.php

    r45583 r45599  
    200200        default:
    201201            /** This action is documented in wp-admin/edit-comments.php */
    202             $location = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $location, $doaction, $post_ids );
     202            $location = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $location, $doaction, $post_ids ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    203203    }
    204204
  • trunk/src/wp-admin/users.php

    r45583 r45599  
    455455
    456456            /** This action is documented in wp-admin/edit-comments.php */
    457             $sendback = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $sendback, $wp_list_table->current_action(), $userids );
     457            $sendback = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $sendback, $wp_list_table->current_action(), $userids ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    458458
    459459            wp_safe_redirect( $sendback );
  • trunk/src/wp-includes/category-template.php

    r45590 r45599  
    12991299     * @param string[] $links An array of term links.
    13001300     */
    1301     $term_links = apply_filters( "term_links-{$taxonomy}", $links );
     1301    $term_links = apply_filters( "term_links-{$taxonomy}", $links );  // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    13021302
    13031303    return $before . join( $sep, $term_links ) . $after;
  • trunk/src/wp-includes/class-wp-customize-widgets.php

    r45590 r45599  
    334334    public function customize_controls_init() {
    335335        /** This action is documented in wp-admin/includes/ajax-actions.php */
    336         do_action( 'load-widgets.php' );
     336        do_action( 'load-widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    337337
    338338        /** This action is documented in wp-admin/includes/ajax-actions.php */
    339         do_action( 'widgets.php' );
     339        do_action( 'widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    340340
    341341        /** This action is documented in wp-admin/widgets.php */
     
    644644    public function print_styles() {
    645645        /** This action is documented in wp-admin/admin-header.php */
    646         do_action( 'admin_print_styles-widgets.php' );
     646        do_action( 'admin_print_styles-widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    647647
    648648        /** This action is documented in wp-admin/admin-header.php */
     
    658658    public function print_scripts() {
    659659        /** This action is documented in wp-admin/admin-header.php */
    660         do_action( 'admin_print_scripts-widgets.php' );
     660        do_action( 'admin_print_scripts-widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    661661
    662662        /** This action is documented in wp-admin/admin-header.php */
     
    861861    public function print_footer_scripts() {
    862862        /** This action is documented in wp-admin/admin-footer.php */
    863         do_action( 'admin_print_footer_scripts-widgets.php' );
     863        do_action( 'admin_print_footer_scripts-widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    864864
    865865        /** This action is documented in wp-admin/admin-footer.php */
     
    867867
    868868        /** This action is documented in wp-admin/admin-footer.php */
    869         do_action( 'admin_footer-widgets.php' );
     869        do_action( 'admin_footer-widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    870870    }
    871871
     
    15391539
    15401540        /** This action is documented in wp-admin/includes/ajax-actions.php */
    1541         do_action( 'load-widgets.php' );
     1541        do_action( 'load-widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    15421542
    15431543        /** This action is documented in wp-admin/includes/ajax-actions.php */
    1544         do_action( 'widgets.php' );
     1544        do_action( 'widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    15451545
    15461546        /** This action is documented in wp-admin/widgets.php */
  • trunk/src/wp-includes/class-wp-http-requests-hooks.php

    r42343 r45599  
    7070         * @param string $url URL to request.
    7171         */
    72         do_action_ref_array( "requests-{$hook}", $parameters, $this->request, $this->url );
     72        do_action_ref_array( "requests-{$hook}", $parameters, $this->request, $this->url ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    7373
    7474        return $result;
  • trunk/src/wp-includes/class-wp-xmlrpc-server.php

    r45590 r45599  
    30743074         * @param array $args    An array of arguments to delete the page.
    30753075         */
    3076         do_action( 'xmlrpc_call_success_wp_deletePage', $page_id, $args );
     3076        do_action( 'xmlrpc_call_success_wp_deletePage', $page_id, $args ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase
    30773077
    30783078        return true;
     
    33813381         * @param array $args   An array of new category arguments.
    33823382         */
    3383         do_action( 'xmlrpc_call_success_wp_newCategory', $cat_id, $args );
     3383        do_action( 'xmlrpc_call_success_wp_newCategory', $cat_id, $args ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase
    33843384
    33853385        return $cat_id;
     
    34313431             * @param array $args        An array of arguments to delete the category.
    34323432             */
    3433             do_action( 'xmlrpc_call_success_wp_deleteCategory', $category_id, $args );
     3433            do_action( 'xmlrpc_call_success_wp_deleteCategory', $category_id, $args ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase
    34343434        }
    34353435
     
    36783678             * @param array $args       An array of arguments to delete the comment.
    36793679             */
    3680             do_action( 'xmlrpc_call_success_wp_deleteComment', $comment_ID, $args );
     3680            do_action( 'xmlrpc_call_success_wp_deleteComment', $comment_ID, $args ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase
    36813681        }
    36823682
     
    37903790         * @param array $args       An array of arguments to update the comment.
    37913791         */
    3792         do_action( 'xmlrpc_call_success_wp_editComment', $comment_ID, $args );
     3792        do_action( 'xmlrpc_call_success_wp_editComment', $comment_ID, $args ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase
    37933793
    37943794        return true;
     
    39273927         * @param array $args       An array of new comment arguments.
    39283928         */
    3929         do_action( 'xmlrpc_call_success_wp_newComment', $comment_ID, $args );
     3929        do_action( 'xmlrpc_call_success_wp_newComment', $comment_ID, $args ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase
    39303930
    39313931        return $comment_ID;
     
    50565056         * @param array $args    An array of new post arguments.
    50575057         */
    5058         do_action( 'xmlrpc_call_success_blogger_newPost', $post_ID, $args );
     5058        do_action( 'xmlrpc_call_success_blogger_newPost', $post_ID, $args ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase
    50595059
    50605060        return $post_ID;
     
    51355135         * @param array $args    An array of arguments for the post to edit.
    51365136         */
    5137         do_action( 'xmlrpc_call_success_blogger_editPost', $post_ID, $args );
     5137        do_action( 'xmlrpc_call_success_blogger_editPost', $post_ID, $args ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase
    51385138
    51395139        return true;
     
    51945194         * @param array $args    An array of arguments to delete the post.
    51955195         */
    5196         do_action( 'xmlrpc_call_success_blogger_deletePost', $post_ID, $args );
     5196        do_action( 'xmlrpc_call_success_blogger_deletePost', $post_ID, $args ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase
    51975197
    51985198        return true;
     
    55465546         * @param array $args    An array of arguments to create the new post.
    55475547         */
    5548         do_action( 'xmlrpc_call_success_mw_newPost', $post_ID, $args );
     5548        do_action( 'xmlrpc_call_success_mw_newPost', $post_ID, $args ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase
    55495549
    55505550        return strval( $post_ID );
     
    59305930         * @param array $args    An array of arguments to update the post.
    59315931         */
    5932         do_action( 'xmlrpc_call_success_mw_editPost', $post_ID, $args );
     5932        do_action( 'xmlrpc_call_success_mw_editPost', $post_ID, $args ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase
    59335933
    59345934        return true;
     
    63656365         * @param array $args An array of arguments to add the attachment.
    63666366         */
    6367         do_action( 'xmlrpc_call_success_mw_newMediaObject', $id, $args );
     6367        do_action( 'xmlrpc_call_success_mw_newMediaObject', $id, $args ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase
    63686368
    63696369        $struct = $this->_prepare_media_item( get_post( $id ) );
  • trunk/src/wp-includes/comment-template.php

    r45590 r45599  
    278278     * @param WP_Comment $comment           The comment object.
    279279     */
    280     return apply_filters( 'get_comment_author_IP', $comment->comment_author_IP, $comment->comment_ID, $comment );
     280    return apply_filters( 'get_comment_author_IP', $comment->comment_author_IP, $comment->comment_ID, $comment );  // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase
    281281}
    282282
     
    668668     * @param WP_Comment $comment    The comment object.
    669669     */
    670     return apply_filters( 'get_comment_ID', $comment->comment_ID, $comment );
     670    return apply_filters( 'get_comment_ID', $comment->comment_ID, $comment );  // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase
    671671}
    672672
  • trunk/src/wp-includes/media-template.php

    r45572 r45599  
    246246                <?php
    247247                /** This action is documented in wp-admin/includes/media.php */
    248                 do_action( 'pre-upload-ui' );
     248                do_action( 'pre-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    249249                /** This action is documented in wp-admin/includes/media.php */
    250                 do_action( 'pre-plupload-upload-ui' );
     250                do_action( 'pre-plupload-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    251251
    252252                if ( 10 === remove_action( 'post-plupload-upload-ui', 'media_upload_flash_bypass' ) ) {
    253253                    /** This action is documented in wp-admin/includes/media.php */
    254                     do_action( 'post-plupload-upload-ui' );
     254                    do_action( 'post-plupload-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    255255                    add_action( 'post-plupload-upload-ui', 'media_upload_flash_bypass' );
    256256                } else {
    257257                    /** This action is documented in wp-admin/includes/media.php */
    258                     do_action( 'post-plupload-upload-ui' );
     258                    do_action( 'post-plupload-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    259259                }
    260260
     
    282282                <?php
    283283                /** This action is documented in wp-admin/includes/media.php */
    284                 do_action( 'post-upload-ui' );
     284                do_action( 'post-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    285285                ?>
    286286            </div>
  • trunk/src/wp-includes/theme.php

    r45590 r45599  
    28492849     * @param string $feature The theme feature.
    28502850     */
    2851     return apply_filters( "current_theme_supports-{$feature}", true, $args, $_wp_theme_features[ $feature ] );
     2851    return apply_filters( "current_theme_supports-{$feature}", true, $args, $_wp_theme_features[ $feature ] ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    28522852}
    28532853
  • trunk/src/wp-mail.php

    r42343 r45599  
    2727 * @since 2.9.0
    2828 */
    29 do_action( 'wp-mail.php' );
     29do_action( 'wp-mail.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    3030
    3131/** Get the POP3 class with which to access the mailbox. */
Note: See TracChangeset for help on using the changeset viewer.