Changeset 23560
- Timestamp:
- 03/01/2013 04:46:25 PM (12 years ago)
- Location:
- trunk/wp-admin/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-posts-list-table.php
r23487 r23560 578 578 if ( in_array( $post->post_status, array( 'pending', 'draft', 'future' ) ) ) { 579 579 if ( $can_edit_post ) 580 $actions['view'] = '<a href="' . esc_url( a dd_query_arg( 'preview', 'true', get_permalink( $post->ID) ) ) . '" title="' . esc_attr( sprintf( __( 'Preview “%s”' ), $title ) ) . '" rel="permalink">' . __( 'Preview' ) . '</a>';580 $actions['view'] = '<a href="' . esc_url( apply_filters( 'preview_post_link', add_query_arg( 'preview', 'true', get_permalink( $post->ID ) ) ) ) . '" title="' . esc_attr( sprintf( __( 'Preview “%s”' ), $title ) ) . '" rel="permalink">' . __( 'Preview' ) . '</a>'; 581 581 } elseif ( 'trash' != $post->post_status ) { 582 582 $actions['view'] = '<a href="' . get_permalink( $post->ID ) . '" title="' . esc_attr( sprintf( __( 'View “%s”' ), $title ) ) . '" rel="permalink">' . __( 'View' ) . '</a>'; -
trunk/wp-admin/includes/post.php
r23554 r23560 1314 1314 } 1315 1315 1316 return $url;1317 } 1316 return apply_filters( 'preview_post_link', $url ); 1317 }
Note: See TracChangeset
for help on using the changeset viewer.