- Timestamp:
- 07/03/2014 02:41:06 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-posts-list-table.php
r28916 r28969 662 662 if ( in_array( $post->post_status, array( 'pending', 'draft', 'future' ) ) ) { 663 663 if ( $can_edit_post ) { 664 664 $preview_link = set_url_scheme( get_permalink( $post->ID ) ); 665 665 /** This filter is documented in wp-admin/includes/meta-boxes.php */ 666 $actions['view'] = '<a href="' . esc_url( apply_filters( 'preview_post_link', set_url_scheme( add_query_arg( 'preview', 'true', get_permalink( $post->ID ) ) ) ) ) . '" title="' . esc_attr( sprintf( __( 'Preview “%s”' ), $title ) ) . '" rel="permalink">' . __( 'Preview' ) . '</a>'; 666 $preview_link = apply_filters( 'preview_post_link', add_query_arg( 'preview', 'true', $preview_link ), $post ); 667 $actions['view'] = '<a href="' . esc_url( $preview_link ) . '" title="' . esc_attr( sprintf( __( 'Preview “%s”' ), $title ) ) . '" rel="permalink">' . __( 'Preview' ) . '</a>'; 667 668 } 668 669 } elseif ( 'trash' != $post->post_status ) {
Note: See TracChangeset
for help on using the changeset viewer.