Ticket #36952: 36952.diff
File 36952.diff, 875 bytes (added by , 8 years ago) |
---|
-
src/wp-includes/class-wp-customize-setting.php
587 587 $id_base = $this->id_data['base']; 588 588 if ( 'option' === $this->type ) { 589 589 return get_option( $id_base, $default ); 590 } else if ( 'theme_mod') {590 } elseif ( 'theme_mod' === $this->type ) { 591 591 return get_theme_mod( $id_base, $default ); 592 592 } else { 593 593 /* … … 616 616 $autoload = self::$aggregated_multidimensionals[ $this->type ][ $this->id_data['base'] ]['autoload']; 617 617 } 618 618 return update_option( $id_base, $value, $autoload ); 619 } else if ( 'theme_mod') {619 } elseif ( 'theme_mod' === $this->type ) { 620 620 set_theme_mod( $id_base, $value ); 621 621 return true; 622 622 } else {