Changeset 2745755
- Timestamp:
- 06/21/2022 10:07:01 AM (4 years ago)
- Location:
- crowdaa-sync
- Files:
-
- 4 edited
- 30 copied
-
tags/1.2.1 (copied) (copied from crowdaa-sync/trunk)
-
tags/1.2.1/CHANGELOG (copied) (copied from crowdaa-sync/trunk/CHANGELOG) (1 diff)
-
tags/1.2.1/LICENSE.txt (copied) (copied from crowdaa-sync/trunk/LICENSE.txt)
-
tags/1.2.1/README.txt (copied) (copied from crowdaa-sync/trunk/README.txt) (1 diff)
-
tags/1.2.1/admin (copied) (copied from crowdaa-sync/trunk/admin)
-
tags/1.2.1/admin/class-crowdaa-sync-add-info-api.php (copied) (copied from crowdaa-sync/trunk/admin/class-crowdaa-sync-add-info-api.php)
-
tags/1.2.1/admin/class-crowdaa-sync-add-info-wp.php (copied) (copied from crowdaa-sync/trunk/admin/class-crowdaa-sync-add-info-wp.php) (4 diffs)
-
tags/1.2.1/admin/class-crowdaa-sync-admin-display.php (copied) (copied from crowdaa-sync/trunk/admin/class-crowdaa-sync-admin-display.php)
-
tags/1.2.1/admin/class-crowdaa-sync-api.php (copied) (copied from crowdaa-sync/trunk/admin/class-crowdaa-sync-api.php)
-
tags/1.2.1/admin/class-crowdaa-sync-ext-hooks.php (copied) (copied from crowdaa-sync/trunk/admin/class-crowdaa-sync-ext-hooks.php)
-
tags/1.2.1/admin/class-crowdaa-sync-meta-box.php (copied) (copied from crowdaa-sync/trunk/admin/class-crowdaa-sync-meta-box.php)
-
tags/1.2.1/admin/class-crowdaa-sync-wp-hooks.php (copied) (copied from crowdaa-sync/trunk/admin/class-crowdaa-sync-wp-hooks.php)
-
tags/1.2.1/admin/css/crowdaa-sync-admin.css (copied) (copied from crowdaa-sync/trunk/admin/css/crowdaa-sync-admin.css)
-
tags/1.2.1/admin/js/crowdaa-sync-admin.js (copied) (copied from crowdaa-sync/trunk/admin/js/crowdaa-sync-admin.js)
-
tags/1.2.1/admin/partials/crowdaa-sync-admin-display.php (copied) (copied from crowdaa-sync/trunk/admin/partials/crowdaa-sync-admin-display.php)
-
tags/1.2.1/cacert.pem (copied) (copied from crowdaa-sync/trunk/cacert.pem)
-
tags/1.2.1/composer.json (copied) (copied from crowdaa-sync/trunk/composer.json)
-
tags/1.2.1/crowdaa-sync.php (copied) (copied from crowdaa-sync/trunk/crowdaa-sync.php) (2 diffs)
-
tags/1.2.1/includes (copied) (copied from crowdaa-sync/trunk/includes)
-
tags/1.2.1/includes/class-crowdaa-sync-exception.php (copied) (copied from crowdaa-sync/trunk/includes/class-crowdaa-sync-exception.php)
-
tags/1.2.1/includes/class-crowdaa-sync-permissions.php (copied) (copied from crowdaa-sync/trunk/includes/class-crowdaa-sync-permissions.php)
-
tags/1.2.1/includes/class-crowdaa-sync-syncdb.php (copied) (copied from crowdaa-sync/trunk/includes/class-crowdaa-sync-syncdb.php)
-
tags/1.2.1/includes/class-crowdaa-sync-utils.php (copied) (copied from crowdaa-sync/trunk/includes/class-crowdaa-sync-utils.php)
-
tags/1.2.1/includes/class-crowdaa-sync-versions.php (copied) (copied from crowdaa-sync/trunk/includes/class-crowdaa-sync-versions.php)
-
tags/1.2.1/includes/class-crowdaa-sync.php (copied) (copied from crowdaa-sync/trunk/includes/class-crowdaa-sync.php)
-
tags/1.2.1/index.php (copied) (copied from crowdaa-sync/trunk/index.php)
-
tags/1.2.1/languages (copied) (copied from crowdaa-sync/trunk/languages)
-
tags/1.2.1/public (copied) (copied from crowdaa-sync/trunk/public)
-
tags/1.2.1/uninstall.php (copied) (copied from crowdaa-sync/trunk/uninstall.php)
-
tags/1.2.1/vendor (copied) (copied from crowdaa-sync/trunk/vendor)
-
trunk/CHANGELOG (modified) (1 diff)
-
trunk/README.txt (modified) (1 diff)
-
trunk/admin/class-crowdaa-sync-add-info-wp.php (modified) (4 diffs)
-
trunk/crowdaa-sync.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
crowdaa-sync/tags/1.2.1/CHANGELOG
r2744975 r2745755 6 6 7 7 ## [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) 8 14 9 15 ## [1.2.0] - 2022-06-14 -
crowdaa-sync/tags/1.2.1/README.txt
r2744975 r2745755 6 6 Requires PHP: 7.3 7 7 Tested up to: 5.9 8 Stable tag: 1.2. 08 Stable tag: 1.2.1 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html 11 11 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.12 Plugin to sync posts and categories from the Crowdaa API (https://www.crowdaa.com/) to WordPress and vice versa. 13 13 14 14 == Description == 15 15 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.16 Plugin to sync posts and categories from the Crowdaa API (https://www.crowdaa.com/) to WordPress and vice versa. 17 17 The plugin syncs posts and categories, pictures and videos of these posts. The plugin has cron for data sync and checks for updates each minute. 18 18 -
crowdaa-sync/tags/1.2.1/admin/class-crowdaa-sync-add-info-wp.php
r2744975 r2745755 341 341 342 342 $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; 344 344 345 345 $post_data = [ … … 354 354 update_post_meta($wp_post_id, 'api_post_id', $api_data->_id); 355 355 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'); 359 357 360 358 $sync_errors = $this->post_sync_api_medias($api_data, $wp_post_id); … … 375 373 376 374 $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; 378 376 379 377 $data = [ … … 383 381 ]; 384 382 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'); 388 384 wp_update_post($data); 389 385 update_post_meta($wp_post_id, 'api_post_id', $api_data->_id); -
crowdaa-sync/tags/1.2.1/crowdaa-sync.php
r2744975 r2745755 14 14 * Plugin URI: 15 15 * Description: Plugin for synchronizing WordPress site and Crowdaa CMS 16 * Version: 1.2. 016 * Version: 1.2.1 17 17 * Requires at least: 5.5 18 18 * Requires PHP: 7.2 … … 34 34 * Uses SemVer - https://semver.org 35 35 */ 36 define('CROWDAA_SYNC_VERSION', '1.2. 0');36 define('CROWDAA_SYNC_VERSION', '1.2.1'); 37 37 define('CROWDAA_SYNC_PLUGIN_DIR', __DIR__); 38 38 define('CROWDAA_SYNC_PLUGIN_NAME', 'crowdaa-sync'); -
crowdaa-sync/trunk/CHANGELOG
r2744975 r2745755 6 6 7 7 ## [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) 8 14 9 15 ## [1.2.0] - 2022-06-14 -
crowdaa-sync/trunk/README.txt
r2744975 r2745755 6 6 Requires PHP: 7.3 7 7 Tested up to: 5.9 8 Stable tag: 1.2. 08 Stable tag: 1.2.1 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html 11 11 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.12 Plugin to sync posts and categories from the Crowdaa API (https://www.crowdaa.com/) to WordPress and vice versa. 13 13 14 14 == Description == 15 15 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.16 Plugin to sync posts and categories from the Crowdaa API (https://www.crowdaa.com/) to WordPress and vice versa. 17 17 The plugin syncs posts and categories, pictures and videos of these posts. The plugin has cron for data sync and checks for updates each minute. 18 18 -
crowdaa-sync/trunk/admin/class-crowdaa-sync-add-info-wp.php
r2744975 r2745755 341 341 342 342 $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; 344 344 345 345 $post_data = [ … … 354 354 update_post_meta($wp_post_id, 'api_post_id', $api_data->_id); 355 355 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'); 359 357 360 358 $sync_errors = $this->post_sync_api_medias($api_data, $wp_post_id); … … 375 373 376 374 $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; 378 376 379 377 $data = [ … … 383 381 ]; 384 382 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'); 388 384 wp_update_post($data); 389 385 update_post_meta($wp_post_id, 'api_post_id', $api_data->_id); -
crowdaa-sync/trunk/crowdaa-sync.php
r2744975 r2745755 14 14 * Plugin URI: 15 15 * Description: Plugin for synchronizing WordPress site and Crowdaa CMS 16 * Version: 1.2. 016 * Version: 1.2.1 17 17 * Requires at least: 5.5 18 18 * Requires PHP: 7.2 … … 34 34 * Uses SemVer - https://semver.org 35 35 */ 36 define('CROWDAA_SYNC_VERSION', '1.2. 0');36 define('CROWDAA_SYNC_VERSION', '1.2.1'); 37 37 define('CROWDAA_SYNC_PLUGIN_DIR', __DIR__); 38 38 define('CROWDAA_SYNC_PLUGIN_NAME', 'crowdaa-sync');
Note: See TracChangeset
for help on using the changeset viewer.