Plugin Directory

Changeset 3230431


Ignore:
Timestamp:
01/28/2025 11:15:02 AM (14 months ago)
Author:
crowdaa
Message:

Version 2.0.2

Location:
crowdaa-sync
Files:
4 edited
43 copied

Legend:

Unmodified
Added
Removed
  • crowdaa-sync/tags/2.0.2/CHANGELOG

    r3229463 r3230431  
    77
    88## [Unreleased]
     9
     10## [2.0.2] - 2025-01-28
     11
     12### Changed
     13
     14- Reverted back to the old API path (it changed with the major version update)
    915
    1016## [2.0.1] - 2025-01-27
  • crowdaa-sync/tags/2.0.2/README.txt

    r3229463 r3230431  
    66Requires PHP: 7.3
    77Tested up to: 5.9
    8 Stable tag: 2.0.1
     8Stable tag: 2.0.2
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • crowdaa-sync/tags/2.0.2/admin/class-crowdaa-sync-rest-api.php

    r3149200 r3230431  
    1818{
    1919  private $plugin_name;
    20   private $namespace;
     20  private $namespace_v1;
    2121
    2222  /**
     
    3131  {
    3232    $this->plugin_name = $plugin_name;
    33     $this->namespace = $this->plugin_name . '/v' . intval($version);
     33    $this->namespace_v1 = $this->plugin_name . '/v1';
    3434  }
    3535
     
    3737  {
    3838    if (get_option('crowdaa_sync_wpapi_register_enabled', 'yes') === 'yes') {
    39       register_rest_route($this->namespace, 'users/register', array(
     39      register_rest_route($this->namespace_v1, 'users/register', array(
    4040        'methods' => 'POST',
    4141        'callback' => array($this, 'register_user'),
    4242        'permission_callback' => array($this, 'permission_allow_all_api'),
    4343      ));
    44       register_rest_route($this->namespace, 'users/forgotpassword', array(
     44      register_rest_route($this->namespace_v1, 'users/forgotpassword', array(
    4545        'methods' => 'POST',
    4646        'callback' => array($this, 'forgot_password'),
    4747        'permission_callback' => array($this, 'permission_allow_all_api'),
    4848      ));
    49       register_rest_route($this->namespace, 'session/checks', array(
     49      register_rest_route($this->namespace_v1, 'session/checks', array(
    5050        'methods' => 'GET',
    5151        'callback' => array($this, 'session_checks'),
    5252        'permission_callback' => array($this, 'permission_allow_auth_api'),
    5353      ));
    54       register_rest_route($this->namespace, 'sync/badges/users', array(
     54      register_rest_route($this->namespace_v1, 'sync/badges/users', array(
    5555        'methods' => 'POST',
    5656        'callback' => array($this, 'sync_badges'),
  • crowdaa-sync/tags/2.0.2/crowdaa-sync.php

    r3229463 r3230431  
    1414 * Plugin URI:       
    1515 * Description:       Plugin for synchronizing WordPress site and Crowdaa CMS
    16  * Version:           2.0.1
     16 * Version:           2.0.2
    1717 * Requires at least: 5.5
    1818 * Requires PHP:      7.2
     
    3434 * Uses SemVer - https://semver.org
    3535 */
    36 define('CROWDAA_SYNC_VERSION', '2.0.1');
     36define('CROWDAA_SYNC_VERSION', '2.0.2');
    3737define('CROWDAA_SYNC_PLUGIN_DIR', __DIR__);
    3838define('CROWDAA_SYNC_PLUGIN_NAME', 'crowdaa-sync');
  • crowdaa-sync/trunk/CHANGELOG

    r3229463 r3230431  
    77
    88## [Unreleased]
     9
     10## [2.0.2] - 2025-01-28
     11
     12### Changed
     13
     14- Reverted back to the old API path (it changed with the major version update)
    915
    1016## [2.0.1] - 2025-01-27
  • crowdaa-sync/trunk/README.txt

    r3229463 r3230431  
    66Requires PHP: 7.3
    77Tested up to: 5.9
    8 Stable tag: 2.0.1
     8Stable tag: 2.0.2
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • crowdaa-sync/trunk/admin/class-crowdaa-sync-rest-api.php

    r3149200 r3230431  
    1818{
    1919  private $plugin_name;
    20   private $namespace;
     20  private $namespace_v1;
    2121
    2222  /**
     
    3131  {
    3232    $this->plugin_name = $plugin_name;
    33     $this->namespace = $this->plugin_name . '/v' . intval($version);
     33    $this->namespace_v1 = $this->plugin_name . '/v1';
    3434  }
    3535
     
    3737  {
    3838    if (get_option('crowdaa_sync_wpapi_register_enabled', 'yes') === 'yes') {
    39       register_rest_route($this->namespace, 'users/register', array(
     39      register_rest_route($this->namespace_v1, 'users/register', array(
    4040        'methods' => 'POST',
    4141        'callback' => array($this, 'register_user'),
    4242        'permission_callback' => array($this, 'permission_allow_all_api'),
    4343      ));
    44       register_rest_route($this->namespace, 'users/forgotpassword', array(
     44      register_rest_route($this->namespace_v1, 'users/forgotpassword', array(
    4545        'methods' => 'POST',
    4646        'callback' => array($this, 'forgot_password'),
    4747        'permission_callback' => array($this, 'permission_allow_all_api'),
    4848      ));
    49       register_rest_route($this->namespace, 'session/checks', array(
     49      register_rest_route($this->namespace_v1, 'session/checks', array(
    5050        'methods' => 'GET',
    5151        'callback' => array($this, 'session_checks'),
    5252        'permission_callback' => array($this, 'permission_allow_auth_api'),
    5353      ));
    54       register_rest_route($this->namespace, 'sync/badges/users', array(
     54      register_rest_route($this->namespace_v1, 'sync/badges/users', array(
    5555        'methods' => 'POST',
    5656        'callback' => array($this, 'sync_badges'),
  • crowdaa-sync/trunk/crowdaa-sync.php

    r3229463 r3230431  
    1414 * Plugin URI:       
    1515 * Description:       Plugin for synchronizing WordPress site and Crowdaa CMS
    16  * Version:           2.0.1
     16 * Version:           2.0.2
    1717 * Requires at least: 5.5
    1818 * Requires PHP:      7.2
     
    3434 * Uses SemVer - https://semver.org
    3535 */
    36 define('CROWDAA_SYNC_VERSION', '2.0.1');
     36define('CROWDAA_SYNC_VERSION', '2.0.2');
    3737define('CROWDAA_SYNC_PLUGIN_DIR', __DIR__);
    3838define('CROWDAA_SYNC_PLUGIN_NAME', 'crowdaa-sync');
Note: See TracChangeset for help on using the changeset viewer.