Changeset 3405179
- Timestamp:
- 11/28/2025 01:01:35 PM (3 months ago)
- Location:
- crowdaa-sync
- Files:
-
- 6 edited
- 44 copied
-
tags/2.2.2 (copied) (copied from crowdaa-sync/trunk)
-
tags/2.2.2/CHANGELOG (copied) (copied from crowdaa-sync/trunk/CHANGELOG) (1 diff)
-
tags/2.2.2/README.txt (copied) (copied from crowdaa-sync/trunk/README.txt) (1 diff)
-
tags/2.2.2/admin/class-crowdaa-sync-add-info-api.php (copied) (copied from crowdaa-sync/trunk/admin/class-crowdaa-sync-add-info-api.php)
-
tags/2.2.2/admin/class-crowdaa-sync-add-info-wp.php (copied) (copied from crowdaa-sync/trunk/admin/class-crowdaa-sync-add-info-wp.php) (3 diffs)
-
tags/2.2.2/admin/class-crowdaa-sync-admin-display.php (copied) (copied from crowdaa-sync/trunk/admin/class-crowdaa-sync-admin-display.php)
-
tags/2.2.2/admin/class-crowdaa-sync-admin.php (copied) (copied from crowdaa-sync/trunk/admin/class-crowdaa-sync-admin.php)
-
tags/2.2.2/admin/class-crowdaa-sync-api.php (copied) (copied from crowdaa-sync/trunk/admin/class-crowdaa-sync-api.php) (1 diff)
-
tags/2.2.2/admin/class-crowdaa-sync-ext-hooks.php (copied) (copied from crowdaa-sync/trunk/admin/class-crowdaa-sync-ext-hooks.php)
-
tags/2.2.2/admin/class-crowdaa-sync-meta-box.php (copied) (copied from crowdaa-sync/trunk/admin/class-crowdaa-sync-meta-box.php)
-
tags/2.2.2/admin/class-crowdaa-sync-rest-api.php (copied) (copied from crowdaa-sync/trunk/admin/class-crowdaa-sync-rest-api.php)
-
tags/2.2.2/admin/class-crowdaa-sync-wp-hooks.php (copied) (copied from crowdaa-sync/trunk/admin/class-crowdaa-sync-wp-hooks.php)
-
tags/2.2.2/admin/css/crowdaa-sync-admin.css (copied) (copied from crowdaa-sync/trunk/admin/css/crowdaa-sync-admin.css)
-
tags/2.2.2/admin/js/crowdaa-sync-admin.js (copied) (copied from crowdaa-sync/trunk/admin/js/crowdaa-sync-admin.js)
-
tags/2.2.2/admin/partials/crowdaa-sync-admin-display.php (copied) (copied from crowdaa-sync/trunk/admin/partials/crowdaa-sync-admin-display.php) (1 diff)
-
tags/2.2.2/crowdaa-sync.php (copied) (copied from crowdaa-sync/trunk/crowdaa-sync.php) (2 diffs)
-
tags/2.2.2/includes/class-crowdaa-sync-activator.php (copied) (copied from crowdaa-sync/trunk/includes/class-crowdaa-sync-activator.php)
-
tags/2.2.2/includes/class-crowdaa-sync-deactivator.php (copied) (copied from crowdaa-sync/trunk/includes/class-crowdaa-sync-deactivator.php)
-
tags/2.2.2/includes/class-crowdaa-sync-exception.php (copied) (copied from crowdaa-sync/trunk/includes/class-crowdaa-sync-exception.php)
-
tags/2.2.2/includes/class-crowdaa-sync-i18n.php (copied) (copied from crowdaa-sync/trunk/includes/class-crowdaa-sync-i18n.php)
-
tags/2.2.2/includes/class-crowdaa-sync-loader.php (copied) (copied from crowdaa-sync/trunk/includes/class-crowdaa-sync-loader.php)
-
tags/2.2.2/includes/class-crowdaa-sync-lock.php (copied) (copied from crowdaa-sync/trunk/includes/class-crowdaa-sync-lock.php)
-
tags/2.2.2/includes/class-crowdaa-sync-logs.php (copied) (copied from crowdaa-sync/trunk/includes/class-crowdaa-sync-logs.php)
-
tags/2.2.2/includes/class-crowdaa-sync-permissions.php (copied) (copied from crowdaa-sync/trunk/includes/class-crowdaa-sync-permissions.php)
-
tags/2.2.2/includes/class-crowdaa-sync-syncdb.php (copied) (copied from crowdaa-sync/trunk/includes/class-crowdaa-sync-syncdb.php)
-
tags/2.2.2/includes/class-crowdaa-sync-timer.php (copied) (copied from crowdaa-sync/trunk/includes/class-crowdaa-sync-timer.php)
-
tags/2.2.2/includes/class-crowdaa-sync-utils.php (copied) (copied from crowdaa-sync/trunk/includes/class-crowdaa-sync-utils.php)
-
tags/2.2.2/includes/class-crowdaa-sync-versions.php (copied) (copied from crowdaa-sync/trunk/includes/class-crowdaa-sync-versions.php)
-
tags/2.2.2/includes/class-crowdaa-sync.php (copied) (copied from crowdaa-sync/trunk/includes/class-crowdaa-sync.php)
-
tags/2.2.2/languages/crowdaa-sync-fr_FR.mo (copied) (copied from crowdaa-sync/trunk/languages/crowdaa-sync-fr_FR.mo)
-
tags/2.2.2/languages/crowdaa-sync-fr_FR.po (copied) (copied from crowdaa-sync/trunk/languages/crowdaa-sync-fr_FR.po)
-
tags/2.2.2/vendor/autoload.php (copied) (copied from crowdaa-sync/trunk/vendor/autoload.php)
-
tags/2.2.2/vendor/composer/ClassLoader.php (copied) (copied from crowdaa-sync/trunk/vendor/composer/ClassLoader.php)
-
tags/2.2.2/vendor/composer/InstalledVersions.php (copied) (copied from crowdaa-sync/trunk/vendor/composer/InstalledVersions.php)
-
tags/2.2.2/vendor/composer/LICENSE (copied) (copied from crowdaa-sync/trunk/vendor/composer/LICENSE)
-
tags/2.2.2/vendor/composer/autoload_classmap.php (copied) (copied from crowdaa-sync/trunk/vendor/composer/autoload_classmap.php)
-
tags/2.2.2/vendor/composer/autoload_files.php (copied) (copied from crowdaa-sync/trunk/vendor/composer/autoload_files.php)
-
tags/2.2.2/vendor/composer/autoload_namespaces.php (copied) (copied from crowdaa-sync/trunk/vendor/composer/autoload_namespaces.php)
-
tags/2.2.2/vendor/composer/autoload_psr4.php (copied) (copied from crowdaa-sync/trunk/vendor/composer/autoload_psr4.php)
-
tags/2.2.2/vendor/composer/autoload_real.php (copied) (copied from crowdaa-sync/trunk/vendor/composer/autoload_real.php)
-
tags/2.2.2/vendor/composer/autoload_static.php (copied) (copied from crowdaa-sync/trunk/vendor/composer/autoload_static.php)
-
tags/2.2.2/vendor/composer/installed.json (copied) (copied from crowdaa-sync/trunk/vendor/composer/installed.json)
-
tags/2.2.2/vendor/composer/installed.php (copied) (copied from crowdaa-sync/trunk/vendor/composer/installed.php)
-
tags/2.2.2/vendor/composer/platform_check.php (copied) (copied from crowdaa-sync/trunk/vendor/composer/platform_check.php)
-
trunk/CHANGELOG (modified) (1 diff)
-
trunk/README.txt (modified) (1 diff)
-
trunk/admin/class-crowdaa-sync-add-info-wp.php (modified) (3 diffs)
-
trunk/admin/class-crowdaa-sync-api.php (modified) (1 diff)
-
trunk/admin/partials/crowdaa-sync-admin-display.php (modified) (1 diff)
-
trunk/crowdaa-sync.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
crowdaa-sync/tags/2.2.2/CHANGELOG
r3383392 r3405179 7 7 8 8 ## [Unreleased] 9 10 ## [2.2.2] - 2025-11-28 11 12 ### Changed 13 14 - Fixed issue when updating a category from API to WP without changing the category picture : Because there is no filtering done in the plugin `custom-category-image`, it was always erasing it on the second sync. 9 15 10 16 ## [2.2.1] - 2025-10-23 -
crowdaa-sync/tags/2.2.2/README.txt
r3383392 r3405179 6 6 Requires PHP: 7.3 7 7 Tested up to: 5.9 8 Stable tag: 2.2. 18 Stable tag: 2.2.2 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
crowdaa-sync/tags/2.2.2/admin/class-crowdaa-sync-add-info-wp.php
r3376210 r3405179 522 522 private function post_sync_api_term_picture($wp_term_id, $api_image) 523 523 { 524 $synced_picture_prev_attachment = null; 524 525 $synced_picture_prev_image = null; 525 526 $synced_picture_ids_raw = get_term_meta($wp_term_id, 'crowdaa_picture', true); … … 527 528 $synced_picture_ids = unserialize($synced_picture_ids_raw); 528 529 $synced_picture_prev_image = $synced_picture_ids['api_id']; 530 $synced_picture_prev_attachment = $synced_picture_ids['attachment_id']; 529 531 } 530 532 … … 563 565 delete_term_meta($wp_term_id, '_category_image_id'); 564 566 } 567 } else if ($synced_picture_prev_attachment) { 568 /* 569 * Force the sync again because the plugin hook waits for $_POST data and will clear this field when updated... 570 */ 571 update_term_meta($wp_term_id, '_category_image_id', $synced_picture_prev_attachment); 565 572 } 566 573 } -
crowdaa-sync/tags/2.2.2/admin/class-crowdaa-sync-api.php
r3383392 r3405179 633 633 throw new Crowdaa_Sync_Error(__('Default article image not set', CROWDAA_SYNC_PLUGIN_NAME)); 634 634 } 635 $default_image = unserialize($default_image); 635 if (is_string($default_image)) { 636 $default_image = unserialize($default_image); 637 } 636 638 637 639 $api_feedpicture_prev_attachment = null; -
crowdaa-sync/tags/2.2.2/admin/partials/crowdaa-sync-admin-display.php
r3229463 r3405179 210 210 $default_image_url = null; 211 211 if ($default_image) { 212 $default_image = unserialize($default_image); 212 if (is_string($default_image)) { 213 $default_image = unserialize($default_image); 214 } 213 215 $default_image_url = $default_image['url']; 214 216 } -
crowdaa-sync/tags/2.2.2/crowdaa-sync.php
r3383392 r3405179 14 14 * Plugin URI: 15 15 * Description: Plugin for synchronizing WordPress site and Crowdaa CMS 16 * Version: 2.2. 116 * Version: 2.2.2 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', '2.2. 1');36 define('CROWDAA_SYNC_VERSION', '2.2.2'); 37 37 define('CROWDAA_SYNC_PLUGIN_DIR', __DIR__); 38 38 define('CROWDAA_SYNC_PLUGIN_NAME', 'crowdaa-sync'); -
crowdaa-sync/trunk/CHANGELOG
r3383392 r3405179 7 7 8 8 ## [Unreleased] 9 10 ## [2.2.2] - 2025-11-28 11 12 ### Changed 13 14 - Fixed issue when updating a category from API to WP without changing the category picture : Because there is no filtering done in the plugin `custom-category-image`, it was always erasing it on the second sync. 9 15 10 16 ## [2.2.1] - 2025-10-23 -
crowdaa-sync/trunk/README.txt
r3383392 r3405179 6 6 Requires PHP: 7.3 7 7 Tested up to: 5.9 8 Stable tag: 2.2. 18 Stable tag: 2.2.2 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
crowdaa-sync/trunk/admin/class-crowdaa-sync-add-info-wp.php
r3376210 r3405179 522 522 private function post_sync_api_term_picture($wp_term_id, $api_image) 523 523 { 524 $synced_picture_prev_attachment = null; 524 525 $synced_picture_prev_image = null; 525 526 $synced_picture_ids_raw = get_term_meta($wp_term_id, 'crowdaa_picture', true); … … 527 528 $synced_picture_ids = unserialize($synced_picture_ids_raw); 528 529 $synced_picture_prev_image = $synced_picture_ids['api_id']; 530 $synced_picture_prev_attachment = $synced_picture_ids['attachment_id']; 529 531 } 530 532 … … 563 565 delete_term_meta($wp_term_id, '_category_image_id'); 564 566 } 567 } else if ($synced_picture_prev_attachment) { 568 /* 569 * Force the sync again because the plugin hook waits for $_POST data and will clear this field when updated... 570 */ 571 update_term_meta($wp_term_id, '_category_image_id', $synced_picture_prev_attachment); 565 572 } 566 573 } -
crowdaa-sync/trunk/admin/class-crowdaa-sync-api.php
r3383392 r3405179 633 633 throw new Crowdaa_Sync_Error(__('Default article image not set', CROWDAA_SYNC_PLUGIN_NAME)); 634 634 } 635 $default_image = unserialize($default_image); 635 if (is_string($default_image)) { 636 $default_image = unserialize($default_image); 637 } 636 638 637 639 $api_feedpicture_prev_attachment = null; -
crowdaa-sync/trunk/admin/partials/crowdaa-sync-admin-display.php
r3229463 r3405179 210 210 $default_image_url = null; 211 211 if ($default_image) { 212 $default_image = unserialize($default_image); 212 if (is_string($default_image)) { 213 $default_image = unserialize($default_image); 214 } 213 215 $default_image_url = $default_image['url']; 214 216 } -
crowdaa-sync/trunk/crowdaa-sync.php
r3383392 r3405179 14 14 * Plugin URI: 15 15 * Description: Plugin for synchronizing WordPress site and Crowdaa CMS 16 * Version: 2.2. 116 * Version: 2.2.2 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', '2.2. 1');36 define('CROWDAA_SYNC_VERSION', '2.2.2'); 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.