Ticket #11580: 11580.diff
| File 11580.diff, 2.1 KB (added by , 17 years ago) |
|---|
-
wp-includes/default-widgets.php
558 558 endif; 559 559 560 560 $cache[$args['widget_id']] = ob_get_flush(); 561 wp_cache_ add('widget_recent_posts', $cache, 'widget');561 wp_cache_set('widget_recent_posts', $cache, 'widget'); 562 562 } 563 563 564 564 function update( $new_instance, $old_instance ) { -
wp-includes/general-template.php
809 809 if ( !isset( $cache[ $key ] ) ) { 810 810 $arcresults = $wpdb->get_results($query); 811 811 $cache[ $key ] = $arcresults; 812 wp_cache_ add( 'wp_get_archives', $cache, 'general' );812 wp_cache_set( 'wp_get_archives', $cache, 'general' ); 813 813 } else { 814 814 $arcresults = $cache[ $key ]; 815 815 } … … 831 831 if ( !isset( $cache[ $key ] ) ) { 832 832 $arcresults = $wpdb->get_results($query); 833 833 $cache[ $key ] = $arcresults; 834 wp_cache_ add( 'wp_get_archives', $cache, 'general' );834 wp_cache_set( 'wp_get_archives', $cache, 'general' ); 835 835 } else { 836 836 $arcresults = $cache[ $key ]; 837 837 } … … 852 852 if ( !isset( $cache[ $key ] ) ) { 853 853 $arcresults = $wpdb->get_results($query); 854 854 $cache[ $key ] = $arcresults; 855 wp_cache_ add( 'wp_get_archives', $cache, 'general' );855 wp_cache_set( 'wp_get_archives', $cache, 'general' ); 856 856 } else { 857 857 $arcresults = $cache[ $key ]; 858 858 } … … 875 875 if ( !isset( $cache[ $key ] ) ) { 876 876 $arcresults = $wpdb->get_results($query); 877 877 $cache[ $key ] = $arcresults; 878 wp_cache_ add( 'wp_get_archives', $cache, 'general' );878 wp_cache_set( 'wp_get_archives', $cache, 'general' ); 879 879 } else { 880 880 $arcresults = $cache[ $key ]; 881 881 } … … 905 905 if ( !isset( $cache[ $key ] ) ) { 906 906 $arcresults = $wpdb->get_results($query); 907 907 $cache[ $key ] = $arcresults; 908 wp_cache_ add( 'wp_get_archives', $cache, 'general' );908 wp_cache_set( 'wp_get_archives', $cache, 'general' ); 909 909 } else { 910 910 $arcresults = $cache[ $key ]; 911 911 }
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)