Plugin Directory

Changeset 1427638


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

fix a bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-baidu-record/trunk/wp-baidu-record.php

    r1427631 r1427638  
    2222                $rs=curl_exec($curl);
    2323                curl_close($curl);
    24                 if(!empty($rs) && !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) && 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.