- Timestamp:
- 09/15/2015 04:14:23 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-posts-list-table.php
r34084 r34170 1158 1158 if ( in_array( $post->post_status, array( 'pending', 'draft', 'future' ) ) ) { 1159 1159 if ( $can_edit_post ) { 1160 $ preview_link = set_url_scheme( get_permalink( $post->ID) );1160 $unpublished_link = set_url_scheme( get_permalink( $post ) ); 1161 1161 /** This filter is documented in wp-admin/includes/meta-boxes.php */ 1162 $preview_link = apply_filters( 'preview_post_link', add_query_arg( 'preview', 'true', $preview_link ), $post);1162 $preview_link = get_preview_post_link( $post, array(), $unpublished_link ); 1163 1163 $actions['view'] = '<a href="' . esc_url( $preview_link ) . '" title="' . esc_attr( sprintf( __( 'Preview “%s”' ), $title ) ) . '" rel="permalink">' . __( 'Preview' ) . '</a>'; 1164 1164 }
Note: See TracChangeset
for help on using the changeset viewer.