Make WordPress Core

Changeset 27402


Ignore:
Timestamp:
03/05/2014 01:12:39 AM (11 years ago)
Author:
nacin
Message:

In set_theme_mod() account for when there is no old value.

fixes #14721. see [27393].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/theme.php

    r27393 r27402  
    914914function set_theme_mod( $name, $value ) {
    915915    $mods = get_theme_mods();
    916     $old_value = $mods[ $name ];
     916    $old_value = isset( $mods[ $name ] ) ? $mods[ $name ] : false;
    917917
    918918    /**
Note: See TracChangeset for help on using the changeset viewer.