Changeset 4953 for trunk/wp-includes/post.php
- Timestamp:
- 02/27/2007 03:24:54 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r4873 r4953 81 81 $extended = ''; 82 82 } 83 83 84 84 // Strip leading and trailing whitespace 85 85 $main = preg_replace('/^[\s]*(.*)[\s]*$/', '\\1', $main); … … 556 556 $post_date_gmt = get_gmt_from_date($post_date); 557 557 } 558 558 559 559 if ( 'publish' == $post_status ) { 560 560 $now = gmdate('Y-m-d H:i:59'); … … 705 705 if ( 'future' == $post_status ) 706 706 wp_schedule_single_event(strtotime($post_date_gmt. ' GMT'), 'publish_future_post', array($post_ID)); 707 707 708 708 do_action('save_post', $post_ID); 709 709 do_action('wp_insert_post', $post_ID); … … 1108 1108 if (!empty($authors)) { 1109 1109 $post_authors = preg_split('/[\s,]+/',$authors); 1110 1110 1111 1111 if ( count($post_authors) ) { 1112 1112 foreach ( $post_authors as $post_author ) {
Note: See TracChangeset
for help on using the changeset viewer.