Fix inverted login in get_transient().
git-svn-id: http://svn.automattic.com/wordpress/trunk@10665 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1629f412ab
commit
b8d8a346d5
|
@ -669,7 +669,7 @@ function get_transient($transient) {
|
||||||
$alloptions = wp_load_alloptions();
|
$alloptions = wp_load_alloptions();
|
||||||
if ( !isset( $alloptions[$transient_option] ) ) {
|
if ( !isset( $alloptions[$transient_option] ) ) {
|
||||||
$transient_timeout = '_transient_timeout_' . $wpdb->escape($transient);
|
$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_option);
|
||||||
delete_option($transient_timeout);
|
delete_option($transient_timeout);
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue