WordPress.org

Make WordPress Core

Ticket #33541: 33541.patch

File 33541.patch, 634 bytes (added by wpdev101, 6 years ago)
  • wp-admin/includes/post.php

     
    13181318        }
    13191319
    13201320        if ( isset( $view_post ) ) {
    1321                 if ( 'draft' == $post->post_status ) {
     1321                if ( 'draft' == $post->post_status || 'pending' == $post->post_status ) {
    13221322                        $preview_link = set_url_scheme( get_permalink( $post->ID ) );
    13231323                        /** This filter is documented in wp-admin/includes/meta-boxes.php */
    13241324                        $preview_link = apply_filters( 'preview_post_link', add_query_arg( 'preview', 'true', $preview_link ), $post );