Plugin Directory

Changeset 3049001


Ignore:
Timestamp:
03/11/2024 10:48:55 AM (2 years ago)
Author:
opcodespace
Message:

fatal error on file type

Location:
simple-export-import-for-acf-data/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • simple-export-import-for-acf-data/trunk/app.php

    r2997056 r3049001  
    55Plugin URI: https://www.opcodespace.com
    66Author: Opcodespace <mehedee@opcodespace.com>
    7 Version: 1.3.15
     7Version: 1.3.16
    88Text Domain: simple-export-import-for-acf-data
    99*/
     
    1313define("SEIP_VIEW_PATH", wp_normalize_path(plugin_dir_path(__FILE__) . "view/"));
    1414define("SEIP_ASSETSURL", plugins_url("assets/", __FILE__));
    15 define('SEIP_PLUGIN_VERSION', '1.3.15');
     15define('SEIP_PLUGIN_VERSION', '1.3.16');
    1616define('PAID_TEXT', '<small class="paid_text">(This is for paid user)</small>');
    1717
  • simple-export-import-for-acf-data/trunk/readme.txt

    r2997056 r3049001  
    55Tested up to: 6.4.1
    66Requires PHP: 7.0
    7 Stable tag: 1.3.15
     7Stable tag: 1.3.16
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    9696
    9797== Changelog ==
     98= 1.3.15 (March 11, 2024) =
     99* Bug Fixed: Image/File field type error
     100
    98101= 1.3.15 (November 16, 2023) =
    99102* Bug Fixed: Link Field type error
  • simple-export-import-for-acf-data/trunk/src/SeipImport.php

    r2997056 r3049001  
    274274            }
    275275
    276             if ($related_field['type'] === 'image') {
     276            if ($related_field['type'] === 'image' && !empty($value['url'])) {
    277277                $upload = $this->download($value['url']);
    278278                return $this->attach($upload, $value);
    279279            }
    280280
    281             if ($related_field['type'] === 'file') {
     281            if ($related_field['type'] === 'file' && !empty($value['url'])) {
    282282                $upload = $this->download($value['url']);
    283283                return $this->attach($upload, $value);
     
    289289                $new_images = [];
    290290                foreach ($images as $image) {
     291                    if(empty($image['url'])){
     292                        continue;
     293                    }
    291294                    $upload       = $this->download($image['url']);
    292295                    $new_images[] = $this->attach($upload, $image);
Note: See TracChangeset for help on using the changeset viewer.