Changeset 3422221
- Timestamp:
- 12/17/2025 06:41:47 PM (3 months ago)
- Location:
- rankjet-ai
- Files:
-
- 20 added
- 4 edited
-
tags/1.0.2 (added)
-
tags/1.0.2/assets (added)
-
tags/1.0.2/assets/css (added)
-
tags/1.0.2/assets/css/admin.css (added)
-
tags/1.0.2/assets/images (added)
-
tags/1.0.2/assets/images/logo.png (added)
-
tags/1.0.2/assets/js (added)
-
tags/1.0.2/assets/js/admin.js (added)
-
tags/1.0.2/inc (added)
-
tags/1.0.2/inc/admin (added)
-
tags/1.0.2/inc/admin/class-rankjet-ai-admin.php (added)
-
tags/1.0.2/inc/init (added)
-
tags/1.0.2/inc/init/class-rankjet-ai-init.php (added)
-
tags/1.0.2/inc/integration (added)
-
tags/1.0.2/inc/integration/class-rankjet-ai-page-data-handler.php (added)
-
tags/1.0.2/inc/integration/class-rankjet-ai-platform-integration.php (added)
-
tags/1.0.2/lang (added)
-
tags/1.0.2/lang/rankjet-ai.pot (added)
-
tags/1.0.2/rankjet-ai.php (added)
-
tags/1.0.2/readme.txt (added)
-
trunk/inc/integration/class-rankjet-ai-page-data-handler.php (modified) (4 diffs)
-
trunk/inc/integration/class-rankjet-ai-platform-integration.php (modified) (1 diff)
-
trunk/rankjet-ai.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
rankjet-ai/trunk/inc/integration/class-rankjet-ai-page-data-handler.php
r3417461 r3422221 73 73 */ 74 74 public function get_pages_list($request) { 75 $limit = $request->get_param('limit') ? intval($request->get_param('limit')) : 50; 76 77 // Support explicit offset, fall back to page-based calculation 78 if ($request->get_param('offset') !== null) { 79 $offset = intval($request->get_param('offset')); 80 // approximate page for calculation 81 $page = floor($offset / $limit) + 1; 82 } else { 83 $page = $request->get_param('page') ? intval($request->get_param('page')) : 1; 84 $offset = ($page - 1) * $limit; 85 } 86 75 87 $pages_data = []; 76 88 77 // Get all published pages and posts 89 // count total posts 90 $total_posts_query = new WP_Query([ 91 'post_type' => ['post', 'page'], 92 'post_status' => 'publish', 93 'posts_per_page' => -1, 94 'fields' => 'ids', 95 ]); 96 $total_posts = $total_posts_query->found_posts; 97 $total_pages = ceil($total_posts / $limit); 98 99 // Get paginated posts 78 100 $posts = get_posts([ 79 101 'post_type' => ['post', 'page'], 80 102 'post_status' => 'publish', 81 'numberposts' => -1, 82 'orderby' => 'date', 103 'posts_per_page' => $limit, 104 'offset' => $offset, 105 'orderby' => 'modified', // Changed from 'date' to 'modified' to catch updates 83 106 'order' => 'DESC' 84 107 ]); … … 113 136 'success' => true, 114 137 'pages' => $pages_data, 115 'total' => count($pages_data) 138 'total' => $total_posts, 139 'total_pages' => $total_pages, 140 'current_page' => $page, 141 'limit' => $limit 116 142 ]); 117 143 } … … 200 226 error_log('RankJet: Adding ' . count($tags) . ' tags'); 201 227 wp_set_post_tags($post_id, $tags, false); 228 } 229 230 // Add planner item id if provided 231 $planner_item_id = $request->get_param('planner_item_id'); 232 if (!empty($planner_item_id)) { 233 error_log('RankJet: Adding planner_item_id: ' . $planner_item_id); 234 update_post_meta($post_id, '_rankjet_planner_item_id', sanitize_text_field($planner_item_id)); 202 235 } 203 236 … … 257 290 'last_modified' => $post->post_modified, 258 291 'post_type' => $post->post_type, // Add post type 292 'post_status' => get_post_status($post_id), 293 'planner_item_id' => get_post_meta($post_id, '_rankjet_planner_item_id', true), 259 294 ]; 260 295 -
rankjet-ai/trunk/inc/integration/class-rankjet-ai-platform-integration.php
r3417461 r3422221 457 457 'h1' => $post->post_title, 458 458 'word_count' => str_word_count(strip_tags($post->post_content)), 459 'word_count' => str_word_count(strip_tags($post->post_content)), 459 460 'status_code' => 200, 461 'post_status' => $post->post_status, 462 'planner_item_id' => get_post_meta($post->ID, '_rankjet_planner_item_id', true), 460 463 ]; 461 464 -
rankjet-ai/trunk/rankjet-ai.php
r3417461 r3422221 4 4 Plugin URI: https://rankjet.ai/ 5 5 Description: AI-powered SEO plugin that helps you optimize your WordPress site with AI-generated meta tags, keyword suggestions, and content analysis. 6 Version: 1.0. 16 Version: 1.0.2 7 7 Author: wpdive 8 8 Author URI: https://wpdive.com … … 12 12 Tested up to: 6.7 13 13 Requires PHP: 7.4 14 License: GPLv 2or later15 License URI: https://www.gnu.org/licenses/gpl- 2.0.html14 License: GPLv3 or later 15 License URI: https://www.gnu.org/licenses/gpl-3.0.html 16 16 */ 17 17 -
rankjet-ai/trunk/readme.txt
r3417464 r3422221 1 === RankJet AI SEO Platform Integration===1 === RankJet AI-Powered SEO & Growth Architect === 2 2 Contributors: wpdive 3 Tags: SEO, AI, wpdive, RankJet, Content Analysis3 Tags: seo, ai content, rankjet, seo automation, content optimization 4 4 Requires at least: 5.4 5 5 Tested up to: 6.8 6 6 Requires PHP: 7.4 7 Stable tag: 1.0. 17 Stable tag: 1.0.2 8 8 License: GPLv3 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html 10 10 11 S eamlessly integrate your WordPress site with the RankJet AI platform for advanced SEO automation and content intelligence.11 Supercharge your organic growth. Seamlessly connect WordPress to RankJet AI for automated content intelligence, real-time SEO scoring, and cloud-based metadata management. 12 12 13 13 == Description == … … 41 41 == Changelog == 42 42 43 = 1.0.2 = 44 * Refactored plugin for better integration. 45 43 46 = 1.0.1 = 44 47 * Refactored plugin for RankJet.ai integration.
Note: See TracChangeset
for help on using the changeset viewer.