diff --git a/wp-admin/includes/class-wp-posts-list-table.php b/wp-admin/includes/class-wp-posts-list-table.php index 8b75704c23..996dc4fcae 100644 --- a/wp-admin/includes/class-wp-posts-list-table.php +++ b/wp-admin/includes/class-wp-posts-list-table.php @@ -577,7 +577,7 @@ class WP_Posts_List_Table extends WP_List_Table { if ( $post_type_object->public ) { if ( in_array( $post->post_status, array( 'pending', 'draft', 'future' ) ) ) { if ( $can_edit_post ) - $actions['view'] = '' . __( 'Preview' ) . ''; + $actions['view'] = '' . __( 'Preview' ) . ''; } elseif ( 'trash' != $post->post_status ) { $actions['view'] = '' . __( 'View' ) . ''; } diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index d7c2e593f4..8c45f6c63c 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -1313,5 +1313,5 @@ function post_preview() { $url = add_query_arg( array( 'preview' => 'true', 'preview_id' => $id, 'preview_nonce' => $nonce ), get_permalink($id) ); } - return $url; + return apply_filters( 'preview_post_link', $url ); }