| 1362 | | if ( in_array($post->post_status, array('pending', 'draft')) ) { |
| 1363 | | if ( current_user_can($post_type_object->edit_cap, $post->ID) ) |
| 1364 | | $actions['view'] = '<a href="' . add_query_arg( 'preview', 'true', get_permalink($post->ID) ) . '" title="' . esc_attr(sprintf(__('Preview “%s”'), $title)) . '" rel="permalink">' . __('Preview') . '</a>'; |
| 1365 | | } elseif ( 'trash' != $post->post_status ) { |
| 1366 | | $actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . esc_attr(sprintf(__('View “%s”'), $title)) . '" rel="permalink">' . __('View') . '</a>'; |
| | 1362 | if ( $post_type_object->publicly_queryable ) { |
| | 1363 | if ( in_array($post->post_status, array('pending', 'draft')) ) { |
| | 1364 | if ( current_user_can($post_type_object->edit_cap, $post->ID) ) |
| | 1365 | $actions['view'] = '<a href="' . add_query_arg( 'preview', 'true', get_permalink($post->ID) ) . '" title="' . esc_attr(sprintf(__('Preview “%s”'), $title)) . '" rel="permalink">' . __('Preview') . '</a>'; |
| | 1366 | } elseif ( 'trash' != $post->post_status ) { |
| | 1367 | $actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . esc_attr(sprintf(__('View “%s”'), $title)) . '" rel="permalink">' . __('View') . '</a>'; |
| | 1368 | } |
| 1584 | | if ( in_array($post->post_status, array('pending', 'draft')) ) { |
| 1585 | | if ( current_user_can($post_type_object->edit_cap, $page->ID) ) |
| 1586 | | $actions['view'] = '<a href="' . add_query_arg( 'preview', 'true', get_permalink($page->ID) ) . '" title="' . esc_attr(sprintf(__('Preview “%s”'), $title)) . '" rel="permalink">' . __('Preview') . '</a>'; |
| 1587 | | } elseif ( $post->post_status != 'trash' ) { |
| 1588 | | $actions['view'] = '<a href="' . get_permalink($page->ID) . '" title="' . esc_attr(sprintf(__('View “%s”'), $title)) . '" rel="permalink">' . __('View') . '</a>'; |
| | 1586 | if ( $post_type_object->publicly_queryable ) { |
| | 1587 | if ( in_array($post->post_status, array('pending', 'draft')) ) { |
| | 1588 | if ( current_user_can($post_type_object->edit_cap, $page->ID) ) |
| | 1589 | $actions['view'] = '<a href="' . add_query_arg( 'preview', 'true', get_permalink($page->ID) ) . '" title="' . esc_attr(sprintf(__('Preview “%s”'), $title)) . '" rel="permalink">' . __('Preview') . '</a>'; |
| | 1590 | } elseif ( $post->post_status != 'trash' ) { |
| | 1591 | $actions['view'] = '<a href="' . get_permalink($page->ID) . '" title="' . esc_attr(sprintf(__('View “%s”'), $title)) . '" rel="permalink">' . __('View') . '</a>'; |
| | 1592 | } |