Plugin Directory

Changeset 3457988


Ignore:
Timestamp:
02/10/2026 12:05:32 PM (10 days ago)
Author:
contentpen
Message:

fix: REST API route registration for posts endpoint to prevent routing conflicts + bump version to 1.0.9

Location:
contentpen
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • contentpen/tags/1.0.9/README.txt

    r3455197 r3457988  
    33Tags: AI, content writing, SEO, blogging, content marketing
    44Requires at least: 5.8
    5 Tested up to: 6.7
    6 Stable tag: 1.0.8
     5Tested up to: 6.9.1
     6Stable tag: 1.0.9
    77Requires PHP: 7.4
    88License: GPLv2 or later
     
    5555== Changelog ==
    5656
     57= 1.0.9 =
     58* Fixed REST API route registration for posts endpoint to prevent routing conflicts
     59
    5760= 1.0.8 =
    5861* Added fallback regex-based conversion for servers without php-xml extension
     
    7073== Upgrade Notice ==
    7174
     75= 1.0.9 =
     76* Fixed REST API route registration for posts endpoint to prevent routing conflicts
     77
    7278= 1.0.8 =
    7379* Added fallback regex-based conversion for servers without php-xml extension
  • contentpen/tags/1.0.9/contentpen-plugin.php

    r3455197 r3457988  
    55 * Plugin URI: https://contentpen.ai
    66 * Description: Contentpen is an AI-powered content writing assistant designed to help businesses create, optimize, and publish SEO-friendly blog posts at scale. By combining deep research with your brand's unique voice, Contentpen crafts high-impact articles that outperform your competition.
    7  * Version: 1.0.8
     7 * Version: 1.0.9
    88 * Requires at least: 5.8
    99 * Requires PHP: 7.4
     
    2020}
    2121
    22 define('CONTENTPEN_VERSION', '1.0.8');
     22define('CONTENTPEN_VERSION', '1.0.9');
    2323define('CONTENTPEN_PLUGIN_DIR', plugin_dir_path(__FILE__));
    2424define('CONTENTPEN_PLUGIN_URL', plugin_dir_url(__FILE__));
  • contentpen/tags/1.0.9/includes/class-contentpen-api.php

    r3455141 r3457988  
    5454    ));
    5555
    56     // Create Post endpoint
     56    // Posts endpoint - handles both GET (list) and POST (create)
    5757    register_rest_route($this->namespace, '/posts', array(
    58       'methods' => 'POST',
    59       'callback' => array($this, 'create_post'),
    60       'permission_callback' => array($this, 'check_api_key')
    61     ));
    62 
    63     // Get Posts endpoint
    64     register_rest_route($this->namespace, '/posts', array(
    65       'methods' => 'GET',
    66       'callback' => array($this, 'get_posts'),
    67       'permission_callback' => array($this, 'check_api_key')
     58      array(
     59        'methods' => 'GET',
     60        'callback' => array($this, 'get_posts'),
     61        'permission_callback' => array($this, 'check_api_key')
     62      ),
     63      array(
     64        'methods' => 'POST',
     65        'callback' => array($this, 'create_post'),
     66        'permission_callback' => array($this, 'check_api_key')
     67      )
    6868    ));
    6969
  • contentpen/trunk/README.txt

    r3455197 r3457988  
    33Tags: AI, content writing, SEO, blogging, content marketing
    44Requires at least: 5.8
    5 Tested up to: 6.7
    6 Stable tag: 1.0.8
     5Tested up to: 6.9.1
     6Stable tag: 1.0.9
    77Requires PHP: 7.4
    88License: GPLv2 or later
     
    5555== Changelog ==
    5656
     57= 1.0.9 =
     58* Fixed REST API route registration for posts endpoint to prevent routing conflicts
     59
    5760= 1.0.8 =
    5861* Added fallback regex-based conversion for servers without php-xml extension
     
    7073== Upgrade Notice ==
    7174
     75= 1.0.9 =
     76* Fixed REST API route registration for posts endpoint to prevent routing conflicts
     77
    7278= 1.0.8 =
    7379* Added fallback regex-based conversion for servers without php-xml extension
  • contentpen/trunk/contentpen-plugin.php

    r3455197 r3457988  
    55 * Plugin URI: https://contentpen.ai
    66 * Description: Contentpen is an AI-powered content writing assistant designed to help businesses create, optimize, and publish SEO-friendly blog posts at scale. By combining deep research with your brand's unique voice, Contentpen crafts high-impact articles that outperform your competition.
    7  * Version: 1.0.8
     7 * Version: 1.0.9
    88 * Requires at least: 5.8
    99 * Requires PHP: 7.4
     
    2020}
    2121
    22 define('CONTENTPEN_VERSION', '1.0.8');
     22define('CONTENTPEN_VERSION', '1.0.9');
    2323define('CONTENTPEN_PLUGIN_DIR', plugin_dir_path(__FILE__));
    2424define('CONTENTPEN_PLUGIN_URL', plugin_dir_url(__FILE__));
  • contentpen/trunk/includes/class-contentpen-api.php

    r3455141 r3457988  
    5454    ));
    5555
    56     // Create Post endpoint
     56    // Posts endpoint - handles both GET (list) and POST (create)
    5757    register_rest_route($this->namespace, '/posts', array(
    58       'methods' => 'POST',
    59       'callback' => array($this, 'create_post'),
    60       'permission_callback' => array($this, 'check_api_key')
    61     ));
    62 
    63     // Get Posts endpoint
    64     register_rest_route($this->namespace, '/posts', array(
    65       'methods' => 'GET',
    66       'callback' => array($this, 'get_posts'),
    67       'permission_callback' => array($this, 'check_api_key')
     58      array(
     59        'methods' => 'GET',
     60        'callback' => array($this, 'get_posts'),
     61        'permission_callback' => array($this, 'check_api_key')
     62      ),
     63      array(
     64        'methods' => 'POST',
     65        'callback' => array($this, 'create_post'),
     66        'permission_callback' => array($this, 'check_api_key')
     67      )
    6868    ));
    6969
Note: See TracChangeset for help on using the changeset viewer.