mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-05 13:14:29 +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:
@@ -902,7 +902,7 @@ function set_theme_mod( $name, $value ) {
|
||||
* @param string $value The new value of the theme mod.
|
||||
* @param string $old_value The current value of the theme mod.
|
||||
*/
|
||||
$mods[ $name ] = apply_filters( "pre_set_theme_mod_$name", $value, $old_value );
|
||||
$mods[ $name ] = apply_filters( "pre_set_theme_mod_{$name}", $value, $old_value );
|
||||
|
||||
$theme = get_option( 'stylesheet' );
|
||||
update_option( "theme_mods_$theme", $mods );
|
||||
|
||||
Reference in New Issue
Block a user