Plugin Directory

Changeset 1427631


Ignore:
Timestamp:
05/31/2016 02:07:05 PM (10 years ago)
Author:
zhangge
Message:

fix a bug

Location:
wp-baidu-record/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-baidu-record/trunk/readme.txt

    r1427578 r1427631  
    55Requires at least: 3.0
    66Tested up to: 4.5.2
    7 Stable tag: 1.0.5
     7Stable tag: 1.0.6
    88License: GPLv2 or later
    99License URI: http://zhangge.net/4726.html
     
    5959== Changelog ==
    6060
     61= 1.0.6 =
     62
     63* 彻底修复判断是否收录不准确问题
     64
    6165= 1.0.4 =
    6266
  • wp-baidu-record/trunk/wp-baidu-record.php

    r1427578 r1427631  
    44Plugin URI:  http://zhangge.net/4726.html
    55Description: <strong>WordPress百度已收录查询与显示插件</strong>,为WordPress博客增加一个百度是否收录的查询和显示功能,并将结果记录到文章自定义栏目,避免总是实时查询影响网站加载速度(0为未收录,1为已收录)。更详细说明请查看插件主页;
    6 Version: 1.0.5
     6Version: 1.0.6
    77Author: 张戈
    8 Author URI: http://zhangge.net/about/
     8Author URI: http://zhangge.net/about.html
    99Copyright: 张戈博客原创插件,任何个人或团体不可擅自更改版权。
    1010*/
     
    2222                $rs=curl_exec($curl);
    2323                curl_close($curl);
    24                 if(!preg_match_all('/没有找到该URL。您可以直接访问/u',$rs) && !preg_match_all('/很抱歉,没有找到与/u',$rs) ){
     24                if(!empty($rs) && !preg_match_all('/没有找到该URL。您可以直接访问/u',$rs) && !preg_match_all('/很抱歉,没有找到与/u',$rs) ){
    2525                   update_post_meta($post_id, 'baidu_record', 1) || add_post_meta($post_id, 'baidu_record', 1, true);
    2626                   return 1;
Note: See TracChangeset for help on using the changeset viewer.