@@ 652-660 (lines=9) @@ | ||
649 | if ( ! wp_installing() ) { |
|
650 | // If option is not in alloptions, it is not autoloaded and thus has a timeout |
|
651 | $alloptions = wp_load_alloptions(); |
|
652 | if ( !isset( $alloptions[$transient_option] ) ) { |
|
653 | $transient_timeout = '_transient_timeout_' . $transient; |
|
654 | $timeout = get_option( $transient_timeout ); |
|
655 | if ( false !== $timeout && $timeout < time() ) { |
|
656 | delete_option( $transient_option ); |
|
657 | delete_option( $transient_timeout ); |
|
658 | $value = false; |
|
659 | } |
|
660 | } |
|
661 | } |
|
662 | ||
663 | if ( ! isset( $value ) ) |
|
@@ 1605-1613 (lines=9) @@ | ||
1602 | // Core transients that do not have a timeout. Listed here so querying timeouts can be avoided. |
|
1603 | $no_timeout = array('update_core', 'update_plugins', 'update_themes'); |
|
1604 | $transient_option = '_site_transient_' . $transient; |
|
1605 | if ( ! in_array( $transient, $no_timeout ) ) { |
|
1606 | $transient_timeout = '_site_transient_timeout_' . $transient; |
|
1607 | $timeout = get_site_option( $transient_timeout ); |
|
1608 | if ( false !== $timeout && $timeout < time() ) { |
|
1609 | delete_site_option( $transient_option ); |
|
1610 | delete_site_option( $transient_timeout ); |
|
1611 | $value = false; |
|
1612 | } |
|
1613 | } |
|
1614 | ||
1615 | if ( ! isset( $value ) ) |
|
1616 | $value = get_site_option( $transient_option ); |