Changeset 2908782
- Timestamp:
- 05/06/2023 07:03:11 AM (3 years ago)
- Location:
- wxsync/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
wxsync.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wxsync/trunk/readme.txt
r2895411 r2908782 3 3 Donate link: http://std.cloud 4 4 Tags: 微信公众号,免费,公众号文章采集,数据采集,微信公众号采集 5 Stable tag: 2.7.2 25 Stable tag: 2.7.23 6 6 Tested up to: 5.8.3 7 7 License: GPLv2 or later -
wxsync/trunk/wxsync.php
r2895411 r2908782 4 4 Plugin URI: http://std.cloud 5 5 Description: 标准云微信公众号文章免费采集、<strong>任意公众号自动采集付费购买</strong> 6 Version: 2.7.2 26 Version: 2.7.23 7 7 Author: 标准云(std.cloud) 8 8 Author URI: http://std.cloud … … 24 24 $GLOBALS['wxsync_tab'] = ''; 25 25 $GLOBALS['wxsync_error'] = array(); 26 $GLOBALS['wxsync_ver'] = '2.7.2 2';26 $GLOBALS['wxsync_ver'] = '2.7.23'; 27 27 $GLOBALS['wxsync_code'] = 0; 28 28 29 29 $GLOBALS['wxsync_pageurl_open'] = 0; 30 $GLOBALS['wxsync_article_att_ids'] = []; 30 31 31 32 function wxsync_admin_menu() { … … 437 438 $zone = get_option('timezone_string'); 438 439 date_default_timezone_set($zone); 440 441 $GLOBALS['wxsync_article_att_ids'] = []; 439 442 440 443 $override = isset($req['override']) && $req['override']; … … 855 858 array_push($GLOBALS['wxsync_error'],'创建文章失败'.esc_url_raw($url)); 856 859 }else{ 860 861 foreach ($GLOBALS['wxsync_article_att_ids'] as $att_id) { 862 $attachment = get_post( $att_id ); 863 if ( $attachment ) { 864 $attachment->post_parent = $pid; 865 wp_update_post( $attachment ); 866 } 867 } 868 857 869 if('keep' == $article_thumbnail && !empty($vardict['thumbnail'])){ 858 870 set_post_thumbnail($pid, $vardict['thumbnail']); … … 996 1008 997 1009 } 1010 1011 $GLOBALS['wxsync_article_att_ids'][] = $att_id; 1012 998 1013 return array($ret[0],$att_id); 999 1014 }
Note: See TracChangeset
for help on using the changeset viewer.