WordPress.org

Make WordPress Core

Changeset 34324


Ignore:
Timestamp:
09/19/2015 04:31:38 PM (4 years ago)
Author:
wonderboymusic
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/post.php

    r34319 r34324  
    13301330
    13311331    if ( isset( $view_post ) ) {
    1332         if ( 'draft' == $post->post_status ) {
     1332        if ( 'draft' == $post->post_status || 'pending' == $post->post_status ) {
    13331333            $draft_link = set_url_scheme( get_permalink( $post->ID ) );
    13341334            $preview_link = get_preview_post_link( $post, array(), $draft_link );
Note: See TracChangeset for help on using the changeset viewer.