Ticket #31147: wp-option.php.patch
File wp-option.php.patch, 959 bytes (added by , 10 years ago) |
---|
-
wp-includes/option.php
81 81 $value = $row->option_value; 82 82 wp_cache_add( $option, $value, 'options' ); 83 83 } else { // option does not exist, so we must cache its non-existence 84 // check to make sure $notoptions is an array 85 if ( !is_array( $notoptions ) ) { 86 $notoptions = array(); 87 } 84 88 $notoptions[$option] = true; 85 89 wp_cache_set( 'notoptions', $notoptions, 'options' ); 86 90 … … 985 989 $value = maybe_unserialize( $value ); 986 990 wp_cache_set( $cache_key, $value, 'site-options' ); 987 991 } else { 992 // check to make sure $notoptions is an array 993 if ( !is_array( $notoptions ) ) { 994 $notoptions = array(); 995 } 988 996 $notoptions[$option] = true; 989 997 wp_cache_set( $notoptions_key, $notoptions, 'site-options' ); 990 998