From ad1f4843178ac69df5f00637f3fb522e67818cb1 Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Tue, 2 Oct 2018 15:52:15 +0000 Subject: [PATCH] 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 --- src/wp-admin/includes/class-wp-posts-list-table.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/includes/class-wp-posts-list-table.php b/src/wp-admin/includes/class-wp-posts-list-table.php index ced70bad84..a70a32e3ed 100644 --- a/src/wp-admin/includes/class-wp-posts-list-table.php +++ b/src/wp-admin/includes/class-wp-posts-list-table.php @@ -1458,12 +1458,15 @@ class WP_Posts_List_Table extends WP_List_Table { + publicly_queryable ) : // publicly_queryable check ?> + -