Make WordPress Core

Ticket #36952: 36952.diff

File 36952.diff, 875 bytes (added by dlh, 8 years ago)
  • src/wp-includes/class-wp-customize-setting.php

     
    587587                $id_base = $this->id_data['base'];
    588588                if ( 'option' === $this->type ) {
    589589                        return get_option( $id_base, $default );
    590                 } else if ( 'theme_mod' ) {
     590                } elseif ( 'theme_mod' === $this->type ) {
    591591                        return get_theme_mod( $id_base, $default );
    592592                } else {
    593593                        /*
     
    616616                                $autoload = self::$aggregated_multidimensionals[ $this->type ][ $this->id_data['base'] ]['autoload'];
    617617                        }
    618618                        return update_option( $id_base, $value, $autoload );
    619                 } else if ( 'theme_mod' ) {
     619                } elseif ( 'theme_mod' === $this->type ) {
    620620                        set_theme_mod( $id_base, $value );
    621621                        return true;
    622622                } else {