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-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>
Note: See TracChangeset for help on using the changeset viewer.