Changeset 473700
- Timestamp:
- 12/12/2011 01:05:55 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
top-posts-pages-widget/trunk/top_posts_n_pages.php
r473696 r473700 26 26 function widget($args, $instance) { 27 27 extract($args); 28 global $blog_id; 28 29 $tpp_widget_title = strip_tags($instance['widget_title']); 29 30 $tpp_number_of_posts = strip_tags($instance['number_of_posts']); … … 53 54 if ( false == $top_posts ) { 54 55 $top_posts = stats_get_csv('postviews', "days=7&limit=50" ); 55 wp_cache_set( 'stats_get_csv', $top_posts );56 wp_cache_set( 'stats_get_csv', $top_posts,$blog_id,'1800' ); 56 57 } 57 58 58 $pn = 1; 59 59 foreach( $top_posts as $posts ) :
Note: See TracChangeset
for help on using the changeset viewer.