Changeset 742347
- Timestamp:
- 07/17/2013 03:49:34 PM (12 years ago)
- File:
-
- 1 edited
-
jetpack/trunk/modules/stats.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
jetpack/trunk/modules/stats.php
r706924 r742347 921 921 $printf = __( '%1$s %2$s Views' , 'jetpack' ); 922 922 923 foreach ( $top_posts = stats_get_csv( 'postviews', "days=$options[top]$csv_args[top]" ) as $post ) 923 foreach ( $top_posts = stats_get_csv( 'postviews', "days=$options[top]$csv_args[top]" ) as $i => $post ) { 924 if ( $post['post_id'] == 0 ) { 925 unset( $top_posts[$i] ); 926 continue; 927 } 924 928 $post_ids[] = $post['post_id']; 929 } 925 930 926 931 // cache … … 928 933 929 934 $searches = array(); 930 foreach ( $search_terms = stats_get_csv( 'searchterms', "days=$options[search]$csv_args[search]" ) as $search_term ) 935 foreach ( $search_terms = stats_get_csv( 'searchterms', "days=$options[search]$csv_args[search]" ) as $search_term ) { 936 if ( $search_term['searchterm'] == 'encrypted_search_terms' ) 937 continue; 931 938 $searches[] = esc_html( $search_term['searchterm'] ); 939 } 932 940 933 941 ?>
Note: See TracChangeset
for help on using the changeset viewer.