Make WordPress Core

Ticket #28637: 28637.1.diff

File 28637.1.diff, 532 bytes (added by MikeHansenMe, 10 years ago)

Updated with tabs instead of spaces

  • src/wp-includes/theme.php

     
    955955         */
    956956        $mods[ $name ] = apply_filters( "pre_set_theme_mod_$name", $value, $old_value );
    957957
     958        // If the new value is empty, remove it entirely so that get_theme_mod() returns false
     959        if ( '' === $value ) unset( $mods[ $name ] );
     960
    958961        $theme = get_option( 'stylesheet' );
    959962        update_option( "theme_mods_$theme", $mods );
    960963}