Changeset 1185514
- Timestamp:
- 06/22/2015 12:50:14 PM (11 years ago)
- Location:
- wp2csdnblog/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (3 diffs)
-
wp2csdnblog.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp2csdnblog/trunk/readme.txt
r1180548 r1185514 6 6 Requires at least: 2.7 7 7 Tested up to: 4.2.2 8 Stable tag: 1. 28 Stable tag: 1.3 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 23 23 * 支持将Wordpress中文章链接发布到对应博客 24 24 * 支持发布文章的自动归类 25 * 支持wordpress的定时发布文章 25 26 26 27 == Installation == … … 42 43 == Changelog == 43 44 45 = 1.3 = 46 47 * 支持发布wordpress的定时发布文章到设置的博客 48 44 49 = 1.2 = 45 50 -
wp2csdnblog/trunk/wp2csdnblog.php
r1180550 r1185514 3 3 Plugin Name: WP2CSDNBlog 4 4 Plugin URI: http://xuhehuan.com/2027.html 5 Version: 1. 25 Version: 1.3 6 6 Author: xhhjin 7 7 Author URI: http://xuhehuan.com … … 27 27 add_action('admin_menu', 'menu_add_wp2csdnblog_setting'); 28 28 add_action('publish_post', 'publish_article_to_csdnblog'); 29 add_action('publish_future_post', 'publish_article_to_csdnblog'); 30 //add_action('future_to_publish', 'publish_article_to_csdnblog'); 31 //add_action('save_post', 'publish_article_to_csdnblog'); 29 32 add_action('xmlrpc_public_post', 'publish_article_to_csdnblog'); 30 33 … … 147 150 $post = get_post($post_ID); 148 151 //new article 149 if($post->post_type == "post" && ($post->post_date == $post->post_modified)) 152 if($post->post_type == "post" && (('publish_post' === current_filter() && $post->post_date == $post->post_modified) || 153 'publish_post' !== current_filter())) 150 154 { 151 155 //get title
Note: See TracChangeset
for help on using the changeset viewer.