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-includes/class-wp-customize-control.php

    r37491 r38307  
    384384         * @param WP_Customize_Control $this WP_Customize_Control instance.
    385385         */
    386         do_action( 'customize_render_control_' . $this->id, $this );
     386        do_action( "customize_render_control_{$this->id}", $this );
    387387
    388388        $this->render();
Note: See TracChangeset for help on using the changeset viewer.