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. Built from https://develop.svn.wordpress.org/branches/5.0@43728 git-svn-id: http://core.svn.wordpress.org/branches/5.0@43557 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4b3d92a0db
commit
392f33495f
|
@ -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">
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.0-alpha-43727';
|
||||
$wp_version = '5.0-alpha-43728';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue