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
This commit is contained in:
John Blackbourn 2015-09-15 10:31:40 +00:00
parent a923d36085
commit b8349f8222
2 changed files with 0 additions and 2 deletions

View File

@ -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'] = '<a href="' . esc_url( $preview_link ) . '" title="' . esc_attr( sprintf( __( 'Preview &#8220;%s&#8221;' ), $title ) ) . '" rel="permalink">' . __( 'Preview' ) . '</a>';
}

View File

@ -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 .= "<span id='view-post-btn'><a href='" . esc_url( $preview_link ) . "' class='button button-small' target='wp-preview-{$post->ID}'>$view_post</a></span>\n";
} else {