From b8349f82225078e6cd84d9b7cac762f7689b3359 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Tue, 15 Sep 2015 10:31:40 +0000 Subject: [PATCH] Remove outdated references to the `preview_post_link` filter docs. See #24345 Props paulwilde git-svn-id: https://develop.svn.wordpress.org/trunk@34178 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-posts-list-table.php | 1 - src/wp-admin/includes/post.php | 1 - 2 files changed, 2 deletions(-) diff --git a/src/wp-admin/includes/class-wp-posts-list-table.php b/src/wp-admin/includes/class-wp-posts-list-table.php index c4883c54be..e00536d540 100644 --- a/src/wp-admin/includes/class-wp-posts-list-table.php +++ b/src/wp-admin/includes/class-wp-posts-list-table.php @@ -1158,7 +1158,6 @@ class WP_Posts_List_Table extends WP_List_Table { if ( in_array( $post->post_status, array( 'pending', 'draft', 'future' ) ) ) { if ( $can_edit_post ) { $unpublished_link = set_url_scheme( get_permalink( $post ) ); - /** This filter is documented in wp-admin/includes/meta-boxes.php */ $preview_link = get_preview_post_link( $post, array(), $unpublished_link ); $actions['view'] = '' . __( 'Preview' ) . ''; } diff --git a/src/wp-admin/includes/post.php b/src/wp-admin/includes/post.php index 66d72cb264..d3a8024fae 100644 --- a/src/wp-admin/includes/post.php +++ b/src/wp-admin/includes/post.php @@ -1319,7 +1319,6 @@ function get_sample_permalink_html( $id, $new_title = null, $new_slug = null ) { if ( isset( $view_post ) ) { if ( 'draft' == $post->post_status ) { $draft_link = set_url_scheme( get_permalink( $post->ID ) ); - /** This filter is documented in wp-admin/includes/meta-boxes.php */ $preview_link = get_preview_post_link( $post, array(), $draft_link ); $return .= "$view_post\n"; } else {