Changeset 2793
- Timestamp:
- 03/24/2016 09:46:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/list-table/class-plugin-posts.php
r2788 r2793 225 225 } 226 226 227 if ( is_post_type_viewable( $post_type_object ) ) { 228 if ( in_array( $post->post_status, array( 'pending', 'draft', 'future' ) ) ) { 229 if ( $can_edit_post ) { 230 $preview_link = get_preview_post_link( $post ); 231 $actions['view'] = sprintf( 232 '<a href="%s" rel="permalink" aria-label="%s">%s</a>', 233 esc_url( $preview_link ), 234 /* translators: %s: post title */ 235 esc_attr( sprintf( __( 'Preview “%s”' ), $title ) ), 236 __( 'Preview' ) 237 ); 238 } 239 } elseif ( 'trash' != $post->post_status ) { 240 $actions['view'] = sprintf( 241 '<a href="%s" rel="permalink" aria-label="%s">%s</a>', 242 get_permalink( $post->ID ), 243 /* translators: %s: post title */ 244 esc_attr( sprintf( __( 'View “%s”' ), $title ) ), 245 __( 'View' ) 246 ); 247 } 227 if ( is_post_type_viewable( $post_type_object ) && 'publish' === $post->post_status ) { 228 $actions['view'] = sprintf( 229 '<a href="%s" rel="permalink" aria-label="%s">%s</a>', 230 get_permalink( $post->ID ), 231 /* translators: %s: post title */ 232 esc_attr( sprintf( __( 'View “%s”' ), $title ) ), 233 __( 'View' ) 234 ); 248 235 } 249 236
Note: See TracChangeset
for help on using the changeset viewer.