WordPress.org

Make WordPress Core

Changeset 43855 for branches/5.0


Ignore:
Timestamp:
11/01/2018 02:34:26 AM (11 months ago)
Author:
pento
Message:

Posts: Remove the slug from Quick Edit for posts that are not is_post_type_viewable().

This is a followup to [43728], which added the same check, but using the publicly_queryable option. This behaviour is incorrect for _builtin post types, which go by the logic in is_post_type_viewable(), instead.

See #43278.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/src/wp-admin/includes/class-wp-posts-list-table.php

    r43854 r43855  
    14271427            </label>
    14281428
    1429         <?php if ( $post_type_object->publicly_queryable ) : // publicly_queryable check ?>
     1429        <?php if ( is_post_type_viewable( $screen->post_type ) ) : // is_post_type_viewable check ?>
    14301430
    14311431            <label>
     
    14351435
    14361436            <?php
    1437     endif; // publicly_queryable check
     1437    endif; // is_post_type_viewable check
    14381438    endif; // $bulk
    14391439    endif; // post_type_supports title
Note: See TracChangeset for help on using the changeset viewer.