Changeset 9311
- Timestamp:
- 12/05/2019 05:53:20 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-query-plugins.php
r9227 r9311 58 58 if ( isset( $query['posts_per_page'] ) ) { 59 59 $query['posts_per_page'] = min( $query['posts_per_page'], 250 ); 60 61 // 0 and -1 are not valid. Just drop the parameter. 62 if ( $query['posts_per_page'] <= 0 ) { 63 unset( $query['posts_per_page'] ); 64 } 60 65 } 61 66
Note: See TracChangeset
for help on using the changeset viewer.