Changeset 1427631
- Timestamp:
- 05/31/2016 02:07:05 PM (10 years ago)
- Location:
- wp-baidu-record/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
wp-baidu-record.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-baidu-record/trunk/readme.txt
r1427578 r1427631 5 5 Requires at least: 3.0 6 6 Tested up to: 4.5.2 7 Stable tag: 1.0. 57 Stable tag: 1.0.6 8 8 License: GPLv2 or later 9 9 License URI: http://zhangge.net/4726.html … … 59 59 == Changelog == 60 60 61 = 1.0.6 = 62 63 * 彻底修复判断是否收录不准确问题 64 61 65 = 1.0.4 = 62 66 -
wp-baidu-record/trunk/wp-baidu-record.php
r1427578 r1427631 4 4 Plugin URI: http://zhangge.net/4726.html 5 5 Description: <strong>WordPress百度已收录查询与显示插件</strong>,为WordPress博客增加一个百度是否收录的查询和显示功能,并将结果记录到文章自定义栏目,避免总是实时查询影响网站加载速度(0为未收录,1为已收录)。更详细说明请查看插件主页; 6 Version: 1.0. 56 Version: 1.0.6 7 7 Author: 张戈 8 Author URI: http://zhangge.net/about /8 Author URI: http://zhangge.net/about.html 9 9 Copyright: 张戈博客原创插件,任何个人或团体不可擅自更改版权。 10 10 */ … … 22 22 $rs=curl_exec($curl); 23 23 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) ){ 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.