Make WordPress Core

Ticket #33561: option.php.4.patch

File option.php.4.patch, 1.0 KB (added by deconf, 9 years ago)

code format fix

  • option.php

     
    630630                        if ( !isset( $alloptions[$transient_option] ) ) {
    631631                                $transient_timeout = '_transient_timeout_' . $transient;
    632632                                $timeout = get_option( $transient_timeout );
    633                                 if ( false !== $timeout && $timeout < time() ) {
     633                                if ( false === $timeout ) {
     634                                        $value = false;
     635                                } else if ( $timeout < time() ) {
    634636                                        delete_option( $transient_option  );
    635637                                        delete_option( $transient_timeout );
    636638                                        $value = false;
     
    14091411                if ( ! in_array( $transient, $no_timeout ) ) {
    14101412                        $transient_timeout = '_site_transient_timeout_' . $transient;
    14111413                        $timeout = get_site_option( $transient_timeout );
    1412                         if ( false !== $timeout && $timeout < time() ) {
     1414                        if ( false === $timeout ) {
     1415                                $value = false;
     1416                        } else if ( $timeout < time() ) {
    14131417                                delete_site_option( $transient_option  );
    14141418                                delete_site_option( $transient_timeout );
    14151419                                $value = false;