Ticket #51296: 51296.diff
File 51296.diff, 677 bytes (added by , 4 years ago) |
---|
-
src/wp-includes/theme.php
1057 1057 * 1058 1058 * @param string $value The new value of the theme modification. 1059 1059 * @param string $old_value The current value of the theme modification. 1060 * @return bool True if the value was updated, false otherwise. 1060 1061 */ 1061 1062 $mods[ $name ] = apply_filters( "pre_set_theme_mod_{$name}", $value, $old_value ); 1062 1063 1063 1064 $theme = get_option( 'stylesheet' ); 1064 update_option( "theme_mods_$theme", $mods );1065 return update_option( "theme_mods_$theme", $mods ); 1065 1066 } 1066 1067 1067 1068 /**