Changeset 3295018
- Timestamp:
- 05/16/2025 09:10:25 PM (11 months ago)
- Location:
- sapientseo
- Files:
-
- 6 edited
- 1 copied
-
tags/1.0.24 (copied) (copied from sapientseo/trunk)
-
tags/1.0.24/inc/api/posts.php (modified) (3 diffs)
-
tags/1.0.24/readme.txt (modified) (1 diff)
-
tags/1.0.24/sapientseo.php (modified) (1 diff)
-
trunk/inc/api/posts.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/sapientseo.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sapientseo/tags/1.0.24/inc/api/posts.php
r3293679 r3295018 232 232 $offset = intval($request->get_param('offset') ?? 0); 233 233 $per_page = $request->get_param('per_page'); 234 $per_page = is_numeric($per_page) && intval($per_page) > 0 ? intval($per_page) : -1; // -1 means all234 $per_page = is_numeric($per_page) && intval($per_page) > 0 ? intval($per_page) : -1; 235 235 236 236 $args = [ … … 241 241 'orderby' => 'modified', 242 242 'order' => 'DESC', 243 'no_found_rows' => true,243 'no_found_rows' => false, // needed to get found_posts 244 244 'cache_results' => false, 245 245 'update_post_meta_cache' => false, … … 266 266 267 267 return rest_ensure_response([ 268 'count' => count($posts), 268 'count' => count($posts), // number of posts in this call 269 'total' => $query->found_posts, // total number of matching posts 269 270 'offset' => $offset, 270 271 'posts' => $posts, -
sapientseo/tags/1.0.24/readme.txt
r3293679 r3295018 4 4 Tested up to: 6.8 5 5 Requires PHP: 7.4 6 Stable tag: 1.0.2 36 Stable tag: 1.0.24 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
sapientseo/tags/1.0.24/sapientseo.php
r3293679 r3295018 3 3 * Plugin Name: SapientSEO 4 4 * Description: Connect your WordPress site to SapientSEO using secure custom REST API endpoints. 5 * Version: 1.0.2 35 * Version: 1.0.24 6 6 * Author: SapientSEO 7 7 * Plugin URI: https://sapientseo.ai -
sapientseo/trunk/inc/api/posts.php
r3293679 r3295018 232 232 $offset = intval($request->get_param('offset') ?? 0); 233 233 $per_page = $request->get_param('per_page'); 234 $per_page = is_numeric($per_page) && intval($per_page) > 0 ? intval($per_page) : -1; // -1 means all234 $per_page = is_numeric($per_page) && intval($per_page) > 0 ? intval($per_page) : -1; 235 235 236 236 $args = [ … … 241 241 'orderby' => 'modified', 242 242 'order' => 'DESC', 243 'no_found_rows' => true,243 'no_found_rows' => false, // needed to get found_posts 244 244 'cache_results' => false, 245 245 'update_post_meta_cache' => false, … … 266 266 267 267 return rest_ensure_response([ 268 'count' => count($posts), 268 'count' => count($posts), // number of posts in this call 269 'total' => $query->found_posts, // total number of matching posts 269 270 'offset' => $offset, 270 271 'posts' => $posts, -
sapientseo/trunk/readme.txt
r3293679 r3295018 4 4 Tested up to: 6.8 5 5 Requires PHP: 7.4 6 Stable tag: 1.0.2 36 Stable tag: 1.0.24 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
sapientseo/trunk/sapientseo.php
r3293679 r3295018 3 3 * Plugin Name: SapientSEO 4 4 * Description: Connect your WordPress site to SapientSEO using secure custom REST API endpoints. 5 * Version: 1.0.2 35 * Version: 1.0.24 6 6 * Author: SapientSEO 7 7 * Plugin URI: https://sapientseo.ai
Note: See TracChangeset
for help on using the changeset viewer.