Plugin Directory

Changeset 3218183


Ignore:
Timestamp:
01/07/2025 08:42:41 AM (14 months ago)
Author:
crowdaa
Message:

Version 1.10.8

Location:
crowdaa-sync
Files:
4 edited
43 copied

Legend:

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

    r3216233 r3218183  
    77
    88## [Unreleased]
     9
     10## [1.10.8] - 2025-01-07
     11
     12### Changed
     13
     14- Preventing Crowdaa API post deletion when WP>API sync is not enabled
    915
    1016## [1.10.7] - 2025-01-03
  • crowdaa-sync/tags/1.10.8/README.txt

    r3216233 r3218183  
    66Requires PHP: 7.3
    77Tested up to: 5.9
    8 Stable tag: 1.10.7
     8Stable tag: 1.10.8
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • crowdaa-sync/tags/1.10.8/admin/class-crowdaa-sync-wp-hooks.php

    r3149200 r3218183  
    176176  public function sync_delete_post($post_id)
    177177  {
    178     $post_api_id = get_post_meta($post_id, 'api_post_id', true);
    179     $sync_api    = new Crowdaa_Sync_API();
    180     if ($post_api_id) {
    181       $sync_api->delete_post_api($post_api_id);
     178    $crowdaa_sync_articles_wp_to_api_enabled = (get_option('crowdaa_sync_articles_wp_to_api_enabled', 'yes') === 'yes');
     179    if ($crowdaa_sync_articles_wp_to_api_enabled) {
     180      $post_api_id = get_post_meta($post_id, 'api_post_id', true);
     181      if ($post_api_id) {
     182        $sync_api = new Crowdaa_Sync_API();
     183        $sync_api->delete_post_api($post_api_id);
     184      }
    182185    }
    183186  }
  • crowdaa-sync/tags/1.10.8/crowdaa-sync.php

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

    r3216233 r3218183  
    77
    88## [Unreleased]
     9
     10## [1.10.8] - 2025-01-07
     11
     12### Changed
     13
     14- Preventing Crowdaa API post deletion when WP>API sync is not enabled
    915
    1016## [1.10.7] - 2025-01-03
  • crowdaa-sync/trunk/README.txt

    r3216233 r3218183  
    66Requires PHP: 7.3
    77Tested up to: 5.9
    8 Stable tag: 1.10.7
     8Stable tag: 1.10.8
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • crowdaa-sync/trunk/admin/class-crowdaa-sync-wp-hooks.php

    r3149200 r3218183  
    176176  public function sync_delete_post($post_id)
    177177  {
    178     $post_api_id = get_post_meta($post_id, 'api_post_id', true);
    179     $sync_api    = new Crowdaa_Sync_API();
    180     if ($post_api_id) {
    181       $sync_api->delete_post_api($post_api_id);
     178    $crowdaa_sync_articles_wp_to_api_enabled = (get_option('crowdaa_sync_articles_wp_to_api_enabled', 'yes') === 'yes');
     179    if ($crowdaa_sync_articles_wp_to_api_enabled) {
     180      $post_api_id = get_post_meta($post_id, 'api_post_id', true);
     181      if ($post_api_id) {
     182        $sync_api = new Crowdaa_Sync_API();
     183        $sync_api->delete_post_api($post_api_id);
     184      }
    182185    }
    183186  }
  • crowdaa-sync/trunk/crowdaa-sync.php

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