Fix warning when installing.
git-svn-id: https://develop.svn.wordpress.org/trunk@13013 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
82e3b2f8f4
commit
268d39dce7
|
@ -673,8 +673,8 @@ function get_transient($transient) {
|
|||
if ( $_wp_using_ext_object_cache ) {
|
||||
$value = wp_cache_get($transient, 'transient');
|
||||
} else {
|
||||
if ( ! defined( 'WP_INSTALLING' ) ) {
|
||||
$transient_option = '_transient_' . esc_sql($transient);
|
||||
if ( ! defined( 'WP_INSTALLING' ) ) {
|
||||
// If option is not in alloptions, it is not autoloaded and thus has a timeout
|
||||
$alloptions = wp_load_alloptions();
|
||||
if ( !isset( $alloptions[$transient_option] ) ) {
|
||||
|
|
Loading…
Reference in New Issue