Fix inverted login in get_transient().
git-svn-id: https://develop.svn.wordpress.org/trunk@10665 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
fdd2cda556
commit
8bab50a649
@ -669,7 +669,7 @@ function get_transient($transient) {
|
||||
$alloptions = wp_load_alloptions();
|
||||
if ( !isset( $alloptions[$transient_option] ) ) {
|
||||
$transient_timeout = '_transient_timeout_' . $wpdb->escape($transient);
|
||||
if ( get_option($transient_timeout) > time() ) {
|
||||
if ( get_option($transient_timeout) < time() ) {
|
||||
delete_option($transient_option);
|
||||
delete_option($transient_timeout);
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user