Make WordPress Core


Ignore:
Timestamp:
06/10/2011 05:02:03 PM (13 years ago)
Author:
markjaquith
Message:

Fix mistaken use of publicly_queryable when public was what was intended. props nacin. fixes #17040

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-posts-list-table.php

    r18158 r18234  
    551551                        $actions['delete'] = "<a class='submitdelete' title='" . esc_attr( __( 'Delete this item permanently' ) ) . "' href='" . get_delete_post_link( $post->ID, '', true ) . "'>" . __( 'Delete Permanently' ) . "</a>";
    552552                }
    553                 if ( $post_type_object->publicly_queryable ) {
     553                if ( $post_type_object->public ) {
    554554                    if ( in_array( $post->post_status, array( 'pending', 'draft' ) ) ) {
    555555                        if ( $can_edit_post )
Note: See TracChangeset for help on using the changeset viewer.