Changeset 3049001
- Timestamp:
- 03/11/2024 10:48:55 AM (2 years ago)
- Location:
- simple-export-import-for-acf-data/trunk
- Files:
-
- 3 edited
-
app.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
src/SeipImport.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simple-export-import-for-acf-data/trunk/app.php
r2997056 r3049001 5 5 Plugin URI: https://www.opcodespace.com 6 6 Author: Opcodespace <mehedee@opcodespace.com> 7 Version: 1.3.1 57 Version: 1.3.16 8 8 Text Domain: simple-export-import-for-acf-data 9 9 */ … … 13 13 define("SEIP_VIEW_PATH", wp_normalize_path(plugin_dir_path(__FILE__) . "view/")); 14 14 define("SEIP_ASSETSURL", plugins_url("assets/", __FILE__)); 15 define('SEIP_PLUGIN_VERSION', '1.3.1 5');15 define('SEIP_PLUGIN_VERSION', '1.3.16'); 16 16 define('PAID_TEXT', '<small class="paid_text">(This is for paid user)</small>'); 17 17 -
simple-export-import-for-acf-data/trunk/readme.txt
r2997056 r3049001 5 5 Tested up to: 6.4.1 6 6 Requires PHP: 7.0 7 Stable tag: 1.3.1 57 Stable tag: 1.3.16 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 96 96 97 97 == Changelog == 98 = 1.3.15 (March 11, 2024) = 99 * Bug Fixed: Image/File field type error 100 98 101 = 1.3.15 (November 16, 2023) = 99 102 * Bug Fixed: Link Field type error -
simple-export-import-for-acf-data/trunk/src/SeipImport.php
r2997056 r3049001 274 274 } 275 275 276 if ($related_field['type'] === 'image' ) {276 if ($related_field['type'] === 'image' && !empty($value['url'])) { 277 277 $upload = $this->download($value['url']); 278 278 return $this->attach($upload, $value); 279 279 } 280 280 281 if ($related_field['type'] === 'file' ) {281 if ($related_field['type'] === 'file' && !empty($value['url'])) { 282 282 $upload = $this->download($value['url']); 283 283 return $this->attach($upload, $value); … … 289 289 $new_images = []; 290 290 foreach ($images as $image) { 291 if(empty($image['url'])){ 292 continue; 293 } 291 294 $upload = $this->download($image['url']); 292 295 $new_images[] = $this->attach($upload, $image);
Note: See TracChangeset
for help on using the changeset viewer.