mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 23:41:38 +01:00
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. Built from https://develop.svn.wordpress.org/trunk@44221 git-svn-id: http://core.svn.wordpress.org/trunk@44051 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b93dd61e90
commit
49418dbd7e
@ -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>
|
<span class="input-text-wrap"><input type="text" name="post_title" class="ptitle" value="" /></span>
|
||||||
</label>
|
</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>
|
<label>
|
||||||
<span class="title"><?php _e( 'Slug' ); ?></span>
|
<span class="title"><?php _e( 'Slug' ); ?></span>
|
||||||
@ -1479,7 +1479,7 @@ class WP_Posts_List_Table extends WP_List_Table {
|
|||||||
</label>
|
</label>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
endif; // publicly_queryable check
|
endif; // is_post_type_viewable check
|
||||||
endif; // $bulk
|
endif; // $bulk
|
||||||
endif; // post_type_supports title
|
endif; // post_type_supports title
|
||||||
?>
|
?>
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.1-alpha-44220';
|
$wp_version = '5.1-alpha-44221';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user