diff options
Diffstat (limited to 'plugins/jetpack/modules/widgets/top-posts.php')
-rw-r--r-- | plugins/jetpack/modules/widgets/top-posts.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/jetpack/modules/widgets/top-posts.php b/plugins/jetpack/modules/widgets/top-posts.php index ab2ffd2e..cdcd59d1 100644 --- a/plugins/jetpack/modules/widgets/top-posts.php +++ b/plugins/jetpack/modules/widgets/top-posts.php @@ -542,7 +542,7 @@ class Jetpack_Top_Posts_Widget extends WP_Widget { $days = 2; } - $post_view_posts = stats_get_from_restapi( array(), 'top-posts?max=11&summarize=1&num=' . absint( $days ) ); + $post_view_posts = stats_get_from_restapi( array(), 'top-posts?max=11&summarize=1&num=' . intval( $days ) ); if ( ! isset( $post_view_posts->summary ) || empty( $post_view_posts->summary->postviews ) ) { return array(); |