Make WordPress Core

Ticket #51296: 51296.diff

File 51296.diff, 677 bytes (added by Hareesh Pillai, 4 years ago)

Patch refreshed

  • src/wp-includes/theme.php

     
    10571057         *
    10581058         * @param string $value     The new value of the theme modification.
    10591059         * @param string $old_value The current value of the theme modification.
     1060         * @return bool True if the value was updated, false otherwise.
    10601061         */
    10611062        $mods[ $name ] = apply_filters( "pre_set_theme_mod_{$name}", $value, $old_value );
    10621063
    10631064        $theme = get_option( 'stylesheet' );
    1064         update_option( "theme_mods_$theme", $mods );
     1065        return update_option( "theme_mods_$theme", $mods );
    10651066}
    10661067
    10671068/**