From e47963d1e7fbcc23e959e5e5689e40c68cde62fb Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Sat, 19 Sep 2015 16:32:24 +0000 Subject: [PATCH] Edit Post: When a post is "Pending Review", the "View Post" link should behave like ot does for drafts and generate a preview link. Props wpdev101. Fixes #33541. Built from https://develop.svn.wordpress.org/trunk@34324 git-svn-id: http://core.svn.wordpress.org/trunk@34288 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/post.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index c7f7688ef5..224c1e97b9 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -1329,7 +1329,7 @@ function get_sample_permalink_html( $id, $new_title = null, $new_slug = null ) { } if ( isset( $view_post ) ) { - if ( 'draft' == $post->post_status ) { + if ( 'draft' == $post->post_status || 'pending' == $post->post_status ) { $draft_link = set_url_scheme( get_permalink( $post->ID ) ); $preview_link = get_preview_post_link( $post, array(), $draft_link ); $return .= "$view_post\n"; diff --git a/wp-includes/version.php b/wp-includes/version.php index d111694d04..b1e43a3ddf 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-34323'; +$wp_version = '4.4-alpha-34324'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.