Make WordPress Core

Ticket #28637: 28637b.diff

File 28637b.diff, 450 bytes (added by philipjohn, 10 years ago)

empty() not isset()

  • wp-includes/theme.php

     
    898898function get_theme_mod( $name, $default = false ) {
    899899        $mods = get_theme_mods();
    900900
    901         if ( isset( $mods[$name] ) ) {
     901        if ( isset( $mods[$name] ) && ! empty( $mods[$name] ) ) {
    902902                /**
    903903                 * Filter the theme modification, or 'theme_mod', value.
    904904                 *