From 5f6ff5333fe275217b3ddf4c5a28e4b396798946 Mon Sep 17 00:00:00 2001 From: Jonny Harris Date: Fri, 1 Apr 2022 11:41:23 +0000 Subject: [PATCH] Users: Fix notice error in `WP_Posts_List_Table` class. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix notice error introduced in [53011] as the variable `$authors_dropdown` is now conditionally loaded. Follow-up to [53011]. Props Spacedmonkey, dd32, johnbillion. See #38741. git-svn-id: https://develop.svn.wordpress.org/trunk@53049 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-posts-list-table.php | 2 +- 1 file changed, 1 insertion(+), 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 c98bfbc98c..99a84da59b 100644 --- a/src/wp-admin/includes/class-wp-posts-list-table.php +++ b/src/wp-admin/includes/class-wp-posts-list-table.php @@ -1748,7 +1748,7 @@ class WP_Posts_List_Table extends WP_List_Table {
post_type, 'author' ) && $bulk ) { + if ( post_type_supports( $screen->post_type, 'author' ) && ! wp_is_large_user_count() && $bulk ) { echo $authors_dropdown; } ?>