mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user