mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@38307 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -176,7 +176,7 @@ class WP_Automatic_Updater {
|
||||
* @param bool $update Whether to update.
|
||||
* @param object $item The update offer.
|
||||
*/
|
||||
$update = apply_filters( 'auto_update_' . $type, $update, $item );
|
||||
$update = apply_filters( "auto_update_{$type}", $update, $item );
|
||||
|
||||
if ( ! $update ) {
|
||||
if ( 'core' == $type )
|
||||
|
||||
Reference in New Issue
Block a user