Plugin Directory

Changeset 3289954


Ignore:
Timestamp:
05/08/2025 02:48:48 PM (11 months ago)
Author:
galbc
Message:

Release version 1.0.7

Location:
sapientseo
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • sapientseo/tags/1.0.7/inc/api/posts.php

    r3289940 r3289954  
    140140    if (isset($params['status']) && in_array($params['status'], ['draft', 'publish'])) {
    141141        $post_data['post_status'] = $params['status'];
     142    }
     143
     144    if (!empty($params['post_date'])) {
     145        $post_data['post_date'] = sanitize_text_field($params['post_date']);
    142146    }
    143147
     
    198202            'created_at'  => get_the_date('c', $post->ID),
    199203            'modified_at' => get_post_modified_time('c', true, $post->ID),
     204            'url'         => get_permalink($post->ID),
    200205        ];
    201206    }
     
    235240        'excerpt'      => get_the_excerpt($post),
    236241        'content'      => apply_filters('the_content', $post->post_content),
     242        'url'          => get_permalink($post_id),
    237243        'created_at'   => get_the_date('c', $post),
    238244        'modified_at'  => get_post_modified_time('c', true, $post),
  • sapientseo/tags/1.0.7/readme.txt

    r3289940 r3289954  
    44Tested up to: 6.8
    55Requires PHP: 7.4
    6 Stable tag: 1.0.6
     6Stable tag: 1.0.7
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
  • sapientseo/tags/1.0.7/sapientseo.php

    r3289940 r3289954  
    33 * Plugin Name: SapientSEO
    44 * Description: Connect your WordPress site to SapientSEO using secure custom REST API endpoints.
    5  * Version: 1.0.6
     5 * Version: 1.0.7
    66 * Author: SapientSEO
    77 * Plugin URI: https://sapientseo.ai
  • sapientseo/trunk/inc/api/posts.php

    r3289940 r3289954  
    140140    if (isset($params['status']) && in_array($params['status'], ['draft', 'publish'])) {
    141141        $post_data['post_status'] = $params['status'];
     142    }
     143
     144    if (!empty($params['post_date'])) {
     145        $post_data['post_date'] = sanitize_text_field($params['post_date']);
    142146    }
    143147
     
    198202            'created_at'  => get_the_date('c', $post->ID),
    199203            'modified_at' => get_post_modified_time('c', true, $post->ID),
     204            'url'         => get_permalink($post->ID),
    200205        ];
    201206    }
     
    235240        'excerpt'      => get_the_excerpt($post),
    236241        'content'      => apply_filters('the_content', $post->post_content),
     242        'url'          => get_permalink($post_id),
    237243        'created_at'   => get_the_date('c', $post),
    238244        'modified_at'  => get_post_modified_time('c', true, $post),
  • sapientseo/trunk/readme.txt

    r3289940 r3289954  
    44Tested up to: 6.8
    55Requires PHP: 7.4
    6 Stable tag: 1.0.6
     6Stable tag: 1.0.7
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
  • sapientseo/trunk/sapientseo.php

    r3289940 r3289954  
    33 * Plugin Name: SapientSEO
    44 * Description: Connect your WordPress site to SapientSEO using secure custom REST API endpoints.
    5  * Version: 1.0.6
     5 * Version: 1.0.7
    66 * Author: SapientSEO
    77 * Plugin URI: https://sapientseo.ai
Note: See TracChangeset for help on using the changeset viewer.