Posts: Remove the slug from Quick Edit for CPTs with publicly_queryable
disabled.
In the full edit screen, CPTs that have disabled the `publicly_queryable` option will hide the slug field, as it doesn't need to be edited. This change brings the Quick Edit view into line with that behaviour. Props bhargavmehta, krutidugade. Fixes #43278. git-svn-id: https://develop.svn.wordpress.org/trunk@43664 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
75c7cb5acf
commit
ad1f484317
@ -1458,12 +1458,15 @@ 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 ?>
|
||||
|
||||
<label>
|
||||
<span class="title"><?php _e( 'Slug' ); ?></span>
|
||||
<span class="input-text-wrap"><input type="text" name="post_name" value="" /></span>
|
||||
</label>
|
||||
|
||||
<?php
|
||||
<?php
|
||||
endif; // publicly_queryable check
|
||||
endif; // $bulk
|
||||
endif; // post_type_supports title
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user