Remove outdated references to the preview_post_link filter docs.
See #24345 Props paulwilde Built from https://develop.svn.wordpress.org/trunk@34178 git-svn-id: http://core.svn.wordpress.org/trunk@34146 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user