Changeset 3392778
- Timestamp:
- 11/10/2025 08:42:44 AM (5 months ago)
- Location:
- infility-global/trunk
- Files:
-
- 2 edited
-
infility_global.php (modified) (2 diffs)
-
widgets/infility-import-data/include/infility-import-site.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
infility-global/trunk/infility_global.php
r3392688 r3392778 4 4 Plugin URI: https://www.infility.cn/ 5 5 Description: Infility公共插件 6 Version: 2.14.2 16 Version: 2.14.22 7 7 Author: Infility 8 8 Author URI: https://www.infility.cn/ … … 135 135 function __construct() 136 136 { 137 define( 'INFILITY_GLOBAL_VERSION', '2.14.2 1' );137 define( 'INFILITY_GLOBAL_VERSION', '2.14.22' ); 138 138 define( 'INFILITY_GLOBAL_PATH', plugin_dir_path( __FILE__ ) ); // fullpath/wp-content/plugins/infility-global/ // 有斜杠 139 139 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
r3392635 r3392778 733 733 734 734 $format_str = $this->htmlTagRuleFormat($type,$search); 735 $tags = $xpath->query(" //$format_str");735 $tags = $xpath->query("$format_str"); 736 736 737 737 foreach($tags as $key=>$value){ … … 777 777 $child = $v['child']; 778 778 if(!empty($v['type']) && $v['type']=='class'){ 779 $format_str .= "//*[@class='$class']//*[@class='$child']|"; 779 $format_str .= "//*[contains(concat(' ', normalize-space(@class), ' '), ' $class ')]//*[contains(concat(' ', normalize-space(@class), ' '), ' $child ')]|"; 780 // $format_str .= "//*[@class='$class']//*[@class='$child']|"; 780 781 }else{ 781 $format_str .= "//*[@class='$class']//$child|"; 782 $format_str .= "//*[contains(concat(' ', normalize-space(@class), ' '), ' $class ')]//$child|"; 783 // $format_str .= "//*[@class='$class']//$child|"; 782 784 } 783 785 } … … 828 830 829 831 function add_image_to_media_library($image_url, $post_id = 0) { 832 if(empty($image_url)){return false;} 833 830 834 require_once(ABSPATH . 'wp-admin/includes/file.php'); 831 835 require_once(ABSPATH . 'wp-admin/includes/media.php'); 832 836 require_once(ABSPATH . 'wp-admin/includes/image.php'); 837 838 if(!strstr($image_url,'https:')){$image_url = 'https:'.$image_url;} 833 839 834 840 // 下载图片到临时文件 … … 1052 1058 } 1053 1059 1054 1055 1060 if(!empty($data['category_name']) && !empty($data['taxonomy'])){ 1056 1061 if(taxonomy_exists($data['taxonomy'])){ … … 1067 1072 } 1068 1073 } 1069 1070 1074 1071 1075 if($data['page_type']=='category' && !empty($url_id)){
Note: See TracChangeset
for help on using the changeset viewer.