Changeset 5725 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
- Timestamp:
- 07/28/2017 07:48:04 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
r5719 r5725 807 807 */ 808 808 public function filter_found_posts( $found_posts, $wp_query ) { 809 if ( isset( $wp_query->query['browse'] ) && in_array( 'plugin', $wp_query->query_vars['post_type'] )) {809 if ( isset( $wp_query->query['browse'] ) && $wp_query->query_vars['post_type'] == 'plugin' ) { 810 810 return min( $found_posts, 99 * $wp_query->query_vars['posts_per_page'] ); // 99 pages 811 811 }
Note: See TracChangeset
for help on using the changeset viewer.