Plugin Directory

Changeset 3392806


Ignore:
Timestamp:
11/10/2025 09:14:01 AM (5 months ago)
Author:
infility
Message:

V2.14.23 (20251110) Ben: 抓取网页数据公共化bug

Location:
infility-global/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • infility-global/trunk/infility_global.php

    r3392778 r3392806  
    44Plugin URI: https://www.infility.cn/
    55Description: Infility公共插件
    6 Version: 2.14.22
     6Version: 2.14.23
    77Author: Infility
    88Author URI: https://www.infility.cn/
     
    135135    function __construct()
    136136    {
    137         define( 'INFILITY_GLOBAL_VERSION', '2.14.22' );
     137        define( 'INFILITY_GLOBAL_VERSION', '2.14.23' );
    138138        define( 'INFILITY_GLOBAL_PATH', plugin_dir_path( __FILE__ ) ); // fullpath/wp-content/plugins/infility-global/ // 有斜杠
    139139        define( 'INFILITY_GLOBAL_URL', plugins_url( '/', __FILE__ ) ); // https://the_domain/wp-content/plugins/infility-global/ // 斜杠是自己加的
  • infility-global/trunk/widgets/infility-import-data/include/infility-import-site.php

    r3392778 r3392806  
    12221222        }else if($type=='gallery'){
    12231223            $format_value = [];
    1224             foreach($data as $k=>$v){
    1225                 $attach_id = $this->add_image_to_media_library($v);
     1224            if(is_array($data)){
     1225                foreach($data as $k=>$v){
     1226                    $attach_id = $this->add_image_to_media_library($v);
     1227                    $format_value[] = $attach_id;
     1228                }
     1229            }else{
     1230                $attach_id = $this->add_image_to_media_library($data);
    12261231                $format_value[] = $attach_id;
    12271232            }
Note: See TracChangeset for help on using the changeset viewer.