Plugin Directory

Changeset 2745755


Ignore:
Timestamp:
06/21/2022 10:07:01 AM (4 years ago)
Author:
crowdaa
Message:

Fixed an issue. Bumped to 1.2.1.

Location:
crowdaa-sync
Files:
4 edited
30 copied

Legend:

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

    r2744975 r2745755  
    66
    77## [Unreleased]
     8
     9## [1.2.1] - 2022-06-14
     10
     11### Changed
     12- The plugin description
     13- API to WP articles sync issue (was not setting a category for articles)
    814
    915## [1.2.0] - 2022-06-14
  • crowdaa-sync/tags/1.2.1/README.txt

    r2744975 r2745755  
    66Requires PHP: 7.3
    77Tested up to: 5.9
    8 Stable tag: 1.2.0
     8Stable tag: 1.2.1
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1111
    12 Plugin to sync posts and categories from the Crowdaa API (https://www.crowdaa.com/ or https://www.applicity.fr/) to WordPress and vice versa.
     12Plugin to sync posts and categories from the Crowdaa API (https://www.crowdaa.com/) to WordPress and vice versa.
    1313
    1414== Description ==
    1515
    16 Plugin to sync posts and categories from the Crowdaa API (https://www.crowdaa.com/ or https://www.applicity.fr/) to WordPress and vice versa.
     16Plugin to sync posts and categories from the Crowdaa API (https://www.crowdaa.com/) to WordPress and vice versa.
    1717The plugin syncs posts and categories, pictures and videos of these posts. The plugin has cron for data sync and checks for updates each minute.
    1818
  • crowdaa-sync/tags/1.2.1/admin/class-crowdaa-sync-add-info-wp.php

    r2744975 r2745755  
    341341
    342342    $term = $cat_sync_db->get_entry_with_api_id($api_data->category->_id, 'wp_id');
    343     $term = get_term($term->wp_id, 'category');
     343    $term = (int) $term->wp_id;
    344344
    345345    $post_data = [
     
    354354    update_post_meta($wp_post_id, 'api_post_id', $api_data->_id);
    355355
    356     $post_type_taxonomy = 'category';
    357 
    358     wp_set_post_terms($wp_post_id, [$term], $post_type_taxonomy);
     356    wp_set_post_terms($wp_post_id, [$term], 'category');
    359357
    360358    $sync_errors = $this->post_sync_api_medias($api_data, $wp_post_id);
     
    375373
    376374    $term = $cat_sync_db->get_entry_with_api_id($api_data->category->_id, 'wp_id');
    377     $term = get_term($term->wp_id, 'category');
     375    $term = (int) $term->wp_id;
    378376
    379377    $data = [
     
    383381    ];
    384382
    385     $post_type_taxonomy = 'category';
    386 
    387     wp_set_post_terms($wp_post_id, [$term], $post_type_taxonomy);
     383    wp_set_post_terms($wp_post_id, [$term], 'category');
    388384    wp_update_post($data);
    389385    update_post_meta($wp_post_id, 'api_post_id', $api_data->_id);
  • crowdaa-sync/tags/1.2.1/crowdaa-sync.php

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

    r2744975 r2745755  
    66
    77## [Unreleased]
     8
     9## [1.2.1] - 2022-06-14
     10
     11### Changed
     12- The plugin description
     13- API to WP articles sync issue (was not setting a category for articles)
    814
    915## [1.2.0] - 2022-06-14
  • crowdaa-sync/trunk/README.txt

    r2744975 r2745755  
    66Requires PHP: 7.3
    77Tested up to: 5.9
    8 Stable tag: 1.2.0
     8Stable tag: 1.2.1
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1111
    12 Plugin to sync posts and categories from the Crowdaa API (https://www.crowdaa.com/ or https://www.applicity.fr/) to WordPress and vice versa.
     12Plugin to sync posts and categories from the Crowdaa API (https://www.crowdaa.com/) to WordPress and vice versa.
    1313
    1414== Description ==
    1515
    16 Plugin to sync posts and categories from the Crowdaa API (https://www.crowdaa.com/ or https://www.applicity.fr/) to WordPress and vice versa.
     16Plugin to sync posts and categories from the Crowdaa API (https://www.crowdaa.com/) to WordPress and vice versa.
    1717The plugin syncs posts and categories, pictures and videos of these posts. The plugin has cron for data sync and checks for updates each minute.
    1818
  • crowdaa-sync/trunk/admin/class-crowdaa-sync-add-info-wp.php

    r2744975 r2745755  
    341341
    342342    $term = $cat_sync_db->get_entry_with_api_id($api_data->category->_id, 'wp_id');
    343     $term = get_term($term->wp_id, 'category');
     343    $term = (int) $term->wp_id;
    344344
    345345    $post_data = [
     
    354354    update_post_meta($wp_post_id, 'api_post_id', $api_data->_id);
    355355
    356     $post_type_taxonomy = 'category';
    357 
    358     wp_set_post_terms($wp_post_id, [$term], $post_type_taxonomy);
     356    wp_set_post_terms($wp_post_id, [$term], 'category');
    359357
    360358    $sync_errors = $this->post_sync_api_medias($api_data, $wp_post_id);
     
    375373
    376374    $term = $cat_sync_db->get_entry_with_api_id($api_data->category->_id, 'wp_id');
    377     $term = get_term($term->wp_id, 'category');
     375    $term = (int) $term->wp_id;
    378376
    379377    $data = [
     
    383381    ];
    384382
    385     $post_type_taxonomy = 'category';
    386 
    387     wp_set_post_terms($wp_post_id, [$term], $post_type_taxonomy);
     383    wp_set_post_terms($wp_post_id, [$term], 'category');
    388384    wp_update_post($data);
    389385    update_post_meta($wp_post_id, 'api_post_id', $api_data->_id);
  • crowdaa-sync/trunk/crowdaa-sync.php

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