Changeset 1427638
- Timestamp:
- 05/31/2016 02:19:59 PM (10 years ago)
- File:
-
- 1 edited
-
wp-baidu-record/trunk/wp-baidu-record.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-baidu-record/trunk/wp-baidu-record.php
r1427631 r1427638 22 22 $rs=curl_exec($curl); 23 23 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)){ 25 25 update_post_meta($post_id, 'baidu_record', 1) || add_post_meta($post_id, 'baidu_record', 1, true); 26 26 return 1;
Note: See TracChangeset
for help on using the changeset viewer.