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";