diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-02-28 12:13:39 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-02-28 12:13:39 +0000 |
commit | c897a0ba270f217512e37f8bd520dd24b35b058d (patch) | |
tree | ab5683db986751fe3d79c9aeddcbbafa708870c7 /wp-includes/post.php | |
parent | 8399b696d7660728535b85dbd90466f0e82e6fc8 (diff) | |
download | wordpress-mu-c897a0ba270f217512e37f8bd520dd24b35b058d.tar.gz wordpress-mu-c897a0ba270f217512e37f8bd520dd24b35b058d.tar.xz wordpress-mu-c897a0ba270f217512e37f8bd520dd24b35b058d.zip |
WP Merge to rev 4956
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@904 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/post.php')
-rw-r--r-- | wp-includes/post.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/wp-includes/post.php b/wp-includes/post.php index 391bd9d..4a9d69c 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -80,7 +80,7 @@ function get_extended($post) { $main = $post; $extended = ''; } - + // Strip leading and trailing whitespace $main = preg_replace('/^[\s]*(.*)[\s]*$/', '\\1', $main); $extended = preg_replace('/^[\s]*(.*)[\s]*$/', '\\1', $extended); @@ -557,7 +557,7 @@ function wp_insert_post($postarr = array()) { if ( 'draft' != $post_status ) $post_date_gmt = get_gmt_from_date($post_date); } - + if ( 'publish' == $post_status ) { $now = gmdate('Y-m-d H:i:59'); if ( mysql2date('U', $post_date_gmt) > mysql2date('U', $now) ) @@ -706,7 +706,7 @@ function wp_insert_post($postarr = array()) { // Schedule publication. if ( 'future' == $post_status ) wp_schedule_single_event(strtotime($post_date_gmt. ' GMT'), 'publish_future_post', array($post_ID)); - + do_action('save_post', $post_ID); do_action('wp_insert_post', $post_ID); @@ -1109,7 +1109,7 @@ function &get_pages($args = '') { $author_query = ''; if (!empty($authors)) { $post_authors = preg_split('/[\s,]+/',$authors); - + if ( count($post_authors) ) { foreach ( $post_authors as $post_author ) { //Do we have an author id or an author login? |