Changeset 9227
- Timestamp:
- 10/24/2019 02:03:33 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
r9138 r9227 98 98 } 99 99 100 $query['post_type'] = 'plugin'; 100 $query['post_type'] = 'plugin'; 101 $query['post_status'] = 'publish'; 101 102 102 103 // Use the main query so that is_main_query() is triggered for the filters. 103 104 $wp_query->query( $query ); 104 105 105 $response['info']['page'] = (int) $wp_query->get( 'paged' ) ?: 1; 106 106 $response['info']['pages'] = (int) $wp_query->max_num_pages ?: 0;
Note: See TracChangeset
for help on using the changeset viewer.