WordPress.org

Make WordPress Core

Ticket #17609: class-wp-posts-list-table.patch

File class-wp-posts-list-table.patch, 1.0 KB (added by jfarthing84, 10 months ago)
  • wp-admin/includes/class-wp-posts-list-table.php

     
    593593                                        if ( 'trash' == $post->post_status || !EMPTY_TRASH_DAYS ) 
    594594                                                $actions['delete'] = "<a class='submitdelete' title='" . esc_attr( __( 'Delete this item permanently' ) ) . "' href='" . get_delete_post_link( $post->ID, '', true ) . "'>" . __( 'Delete Permanently' ) . "</a>"; 
    595595                                } 
    596                                 if ( $post_type_object->public ) { 
     596                                if ( $post_type_object->publicly_queryable ) { 
    597597                                        if ( in_array( $post->post_status, array( 'pending', 'draft', 'future' ) ) ) { 
    598598                                                if ( $can_edit_post ) 
    599599                                                        $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 &#8220;%s&#8221;' ), $title ) ) . '" rel="permalink">' . __( 'Preview' ) . '</a>';