mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 21:08:44 +01:00
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. Merges [43664] to the 5.0 branch. Props bhargavmehta, krutidugade. Fixes #43278. git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43728 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c4052edfe9
commit
bb60df4a8c
@ -1413,13 +1413,18 @@ 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 endif; // $bulk
|
||||
endif; // post_type_supports title ?>
|
||||
<?php
|
||||
endif; // publicly_queryable check
|
||||
endif; // $bulk
|
||||
endif; // post_type_supports title
|
||||
?>
|
||||
|
||||
<?php if ( !$bulk ) : ?>
|
||||
<fieldset class="inline-edit-date">
|
||||
|
Loading…
x
Reference in New Issue
Block a user