diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index 4eadc81881..1cdb5c7614 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -147,6 +147,7 @@ if ( 0 != $post_ID ) {

+ post_status, array('publish', 'future') ) || 0 == $post_ID ) { diff --git a/wp-admin/edit-page-form.php b/wp-admin/edit-page-form.php index 6bcc8d1d33..0bc9ce0cb7 100644 --- a/wp-admin/edit-page-form.php +++ b/wp-admin/edit-page-form.php @@ -123,6 +123,7 @@ if ( 0 != $post_ID ) {

+ post_status, array('publish', 'future') ) || 0 == $post_ID ) { diff --git a/wp-includes/post.php b/wp-includes/post.php index f5743b8483..6976c056ff 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -1428,6 +1428,7 @@ function wp_insert_post($postarr = array(), $wp_error = false) { // expected_slashed (everything!) $data = compact( array( 'post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_content_filtered', 'post_title', 'post_excerpt', 'post_status', 'post_type', 'comment_status', 'ping_status', 'post_password', 'post_name', 'to_ping', 'pinged', 'post_modified', 'post_modified_gmt', 'post_parent', 'menu_order', 'guid' ) ); + $data = apply_filters('wp_insert_post', $data, $postarr); $data = stripslashes_deep( $data ); $where = array( 'ID' => $post_ID );