WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/16/2018 01:52:50 AM (9 months ago)
Author:
jeremyfelt
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.

Merges [43855] from the 5.0 branch to trunk.

Props pento.
See #43278.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/wp-admin/includes/class-wp-posts-list-table.php

    r44220 r44221  
    14721472            </label>
    14731473
    1474         <?php if ( $post_type_object->publicly_queryable ) : // publicly_queryable check ?>
     1474        <?php if ( is_post_type_viewable( $screen->post_type ) ) : // is_post_type_viewable check ?>
    14751475
    14761476            <label>
     
    14801480
    14811481            <?php
    1482     endif; // publicly_queryable check
     1482    endif; // is_post_type_viewable check
    14831483    endif; // $bulk
    14841484    endif; // post_type_supports title
Note: See TracChangeset for help on using the changeset viewer.