Plugin Directory

Changeset 3258292


Ignore:
Timestamp:
03/19/2025 08:11:00 AM (13 months ago)
Author:
cnfang
Message:

2.8.2

Location:
wxsync/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wxsync/trunk/readme.txt

    r3256421 r3258292  
    33Donate link: http://std.cloud
    44Tags: 微信公众号,免费,公众号文章采集,数据采集,微信公众号采集
    5 Stable tag: 2.8.1
     5Stable tag: 2.8.2
    66Tested up to: 6.3
    77License: GPLv2 or later
     
    3232
    3333== Changelog ==
     342.8.2  修复自动推送
     35
    34362.8.1  修复微信无法采集
    3537
  • wxsync/trunk/wxsync.php

    r3256421 r3258292  
    44Plugin URI: http://std.cloud
    55Description: 标准云微信公众号文章免费采集、<strong>任意公众号自动采集付费购买</strong>
    6 Version: 2.8.1
     6Version: 2.8.2
    77Author: 标准云(std.cloud)
    88Author URI: http://std.cloud
     
    2424$GLOBALS['wxsync_tab'] = '';
    2525$GLOBALS['wxsync_error'] = array();
    26 $GLOBALS['wxsync_ver'] = '2.8.1';
     26$GLOBALS['wxsync_ver'] = '2.8.2';
    2727$GLOBALS['wxsync_code'] = 0;
    2828
     
    5454    // 验证用户是否有权限
    5555    if (isset($_REQUEST['wxsync_tab']) && !current_user_can('edit_posts')) {
    56         return;
     56        if("autoset" != $_REQUEST['wxsync_tab']){
     57            return;
     58        }
     59       
    5760    }
    5861
     
    156159        ));
    157160    }else if($req['wxsync_tab'] == 'autoset'){
    158         // 验证Nonce
    159         if (!isset($_POST['wxsync_nonce_field']) || !wp_verify_nonce($_POST['wxsync_nonce_field'], 'wxsync_autoset_action')) {
    160             // 非法请求
    161             wp_die('安全验证失败,请刷新页面重试。');
    162             return;
    163         }
    164 
     161        //对比私有token,验证token,自动采集
    165162        if(isset($req['wxsync_settoken'])){
    166163            if(!is_admin() || !current_user_can('manage_options')){
Note: See TracChangeset for help on using the changeset viewer.