WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/22/2016 06:24:48 PM (5 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/media-upload.php

    r37914 r38307  
    9696     * @since 2.5.0
    9797     */
    98     do_action( "media_upload_$type" );
     98    do_action( "media_upload_{$type}" );
    9999} else {
    100100    /**
     
    108108     * @since 2.5.0
    109109     */
    110     do_action( "media_upload_$tab" );
     110    do_action( "media_upload_{$tab}" );
    111111}
    112112
Note: See TracChangeset for help on using the changeset viewer.