Plugin Directory

Changeset 3422221


Ignore:
Timestamp:
12/17/2025 06:41:47 PM (3 months ago)
Author:
wpdive
Message:

1.0.2 Release

Location:
rankjet-ai
Files:
20 added
4 edited

Legend:

Unmodified
Added
Removed
  • rankjet-ai/trunk/inc/integration/class-rankjet-ai-page-data-handler.php

    r3417461 r3422221  
    7373     */
    7474    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
    7587        $pages_data = [];
    7688       
    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
    78100        $posts = get_posts([
    79101            'post_type' => ['post', 'page'],
    80102            '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
    83106            'order' => 'DESC'
    84107        ]);
     
    113136            'success' => true,
    114137            'pages' => $pages_data,
    115             'total' => count($pages_data)
     138            'total' => $total_posts,
     139            'total_pages' => $total_pages,
     140            'current_page' => $page,
     141            'limit' => $limit
    116142        ]);
    117143    }
     
    200226            error_log('RankJet: Adding ' . count($tags) . ' tags');
    201227            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));
    202235        }
    203236
     
    257290            'last_modified' => $post->post_modified,
    258291            '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),
    259294        ];
    260295
  • rankjet-ai/trunk/inc/integration/class-rankjet-ai-platform-integration.php

    r3417461 r3422221  
    457457                'h1' => $post->post_title,
    458458                'word_count' => str_word_count(strip_tags($post->post_content)),
     459                'word_count' => str_word_count(strip_tags($post->post_content)),
    459460                'status_code' => 200,
     461                'post_status' => $post->post_status,
     462                'planner_item_id' => get_post_meta($post->ID, '_rankjet_planner_item_id', true),
    460463            ];
    461464
  • rankjet-ai/trunk/rankjet-ai.php

    r3417461 r3422221  
    44Plugin URI: https://rankjet.ai/
    55Description: 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.1
     6Version: 1.0.2
    77Author: wpdive
    88Author URI: https://wpdive.com
     
    1212Tested up to: 6.7
    1313Requires PHP: 7.4
    14 License: GPLv2 or later
    15 License URI: https://www.gnu.org/licenses/gpl-2.0.html
     14License: GPLv3 or later
     15License URI: https://www.gnu.org/licenses/gpl-3.0.html
    1616*/
    1717
  • rankjet-ai/trunk/readme.txt

    r3417464 r3422221  
    1 === RankJet AI SEO Platform Integration ===
     1=== RankJet AI-Powered SEO & Growth Architect ===
    22Contributors: wpdive
    3 Tags: SEO, AI, wpdive, RankJet, Content Analysis
     3Tags: seo, ai content, rankjet, seo automation, content optimization
    44Requires at least: 5.4
    55Tested up to: 6.8
    66Requires PHP: 7.4
    7 Stable tag: 1.0.1
     7Stable tag: 1.0.2
    88License: GPLv3 or later
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
    1010
    11 Seamlessly integrate your WordPress site with the RankJet AI platform for advanced SEO automation and content intelligence.
     11Supercharge your organic growth. Seamlessly connect WordPress to RankJet AI for automated content intelligence, real-time SEO scoring, and cloud-based metadata management.
    1212
    1313== Description ==
     
    4141== Changelog ==
    4242
     43= 1.0.2 =
     44* Refactored plugin for better integration.
     45
    4346= 1.0.1 =
    4447* Refactored plugin for RankJet.ai integration.
Note: See TracChangeset for help on using the changeset viewer.