From 6d51562d72649af8748579c3d1bda90cde88017b Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Sat, 19 Sep 2015 16:31:38 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@34324 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/post.php b/src/wp-admin/includes/post.php index c7f7688ef5..224c1e97b9 100644 --- a/src/wp-admin/includes/post.php +++ b/src/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";