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.


git-svn-id: https://develop.svn.wordpress.org/trunk@44221 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jeremy Felt 2018-12-16 01:52:50 +00:00
parent c9c6beb3f3
commit 5c3f3b8167
1 changed files with 2 additions and 2 deletions

View File

@ -1471,7 +1471,7 @@ class WP_Posts_List_Table extends WP_List_Table {
<span class="input-text-wrap"><input type="text" name="post_title" class="ptitle" value="" /></span>
</label>
<?php if ( $post_type_object->publicly_queryable ) : // publicly_queryable check ?>
<?php if ( is_post_type_viewable( $screen->post_type ) ) : // is_post_type_viewable check ?>
<label>
<span class="title"><?php _e( 'Slug' ); ?></span>
@ -1479,7 +1479,7 @@ class WP_Posts_List_Table extends WP_List_Table {
</label>
<?php
endif; // publicly_queryable check
endif; // is_post_type_viewable check
endif; // $bulk
endif; // post_type_supports title
?>