Changeset 473725
- Timestamp:
- 12/12/2011 03:08:19 AM (14 years ago)
- File:
-
- 1 edited
-
top-posts-pages-widget/trunk/top_posts_n_pages.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
top-posts-pages-widget/trunk/top_posts_n_pages.php
r473700 r473725 50 50 <ul> <?php 51 51 52 if ( function_exists(' stats_get_csv') ) {52 if ( function_exists('top_post_ids',$blog_id) ) { 53 53 $top_posts = wp_cache_get('top_posts'); 54 54 if ( false == $top_posts ) { 55 55 $top_posts = stats_get_csv('postviews', "days=7&limit=50" ); 56 wp_cache_set( ' stats_get_csv',$top_posts,$blog_id,'1800' );56 wp_cache_set( 'top_posts_ids',$top_posts,$blog_id,'1800' ); 57 57 } 58 58 $pn = 1; 59 foreach( $top_posts as $ posts) :59 foreach( $top_posts as $top_post ) : 60 60 if ( $pn <= $tpp_number_of_posts ) { 61 $postid = get_post($ posts['post_id']);61 $postid = get_post($top_post['post_id']); 62 62 if ( $tpp_show_pages == "off" ) { 63 63 if( $postid->post_type == "page" ) continue;
Note: See TracChangeset
for help on using the changeset viewer.