Changeset 10541 for sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-themes-api.php
- Timestamp:
- 12/21/2020 05:34:54 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-themes-api.php
r10296 r10541 544 544 } 545 545 if ( isset( $this->request->per_page ) ) { 546 // Maximum of 999 themes per page, and a minimum of 1. 546 547 $this->query['posts_per_page'] = min( (int) $this->request->per_page, 999 ); 548 if ( $this->query['posts_per_page'] < 1 ) { 549 unset( $this->query['posts_per_page'] ); 550 } 547 551 } 548 552
Note: See TracChangeset
for help on using the changeset viewer.