Ticket #19378: 19378.2.patch
| File 19378.2.patch, 1.6 KB (added by , 14 years ago) |
|---|
-
wp-admin/includes/class-wp-posts-list-table.php
556 556 if ( $post_type_object->public ) { 557 557 if ( in_array( $post->post_status, array( 'pending', 'draft', 'future' ) ) ) { 558 558 if ( $can_edit_post ) 559 $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>';559 $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>'; 560 560 } elseif ( 'trash' != $post->post_status ) { 561 561 $actions['view'] = '<a href="' . get_permalink( $post->ID ) . '" title="' . esc_attr( sprintf( __( 'View “%s”' ), $title ) ) . '" rel="permalink">' . __( 'View' ) . '</a>'; 562 562 } -
wp-admin/includes/post.php
1327 1327 $url = add_query_arg( array( 'preview' => 'true', 'preview_id' => $id, 'preview_nonce' => $nonce ), get_permalink($id) ); 1328 1328 } 1329 1329 1330 return $url;1330 return apply_filters( 'preview_post_link', $url ); 1331 1331 } 1332 1332 1333 1333 /**
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)