From 8c39de055a44234fe26520df7dd838a667573e91 Mon Sep 17 00:00:00 2001 From: Rebecca Hum <16962021+rebeccahum@users.noreply.github.com> Date: Wed, 4 Oct 2023 12:55:40 -0600 Subject: [PATCH] Fix WP 5.9 deprecation notice with rebasaurus console 28 Sep 15:46 (#701) rebasaurus ttys000 28 Sep 15:46 rebasaurus ttys001 3 Oct 13:13 rebasaurus ttys003 3 Oct 10:34 rebasaurus ttys004 3 Oct 08:28 in WP_User_Query --- common/php/class-module.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/php/class-module.php b/common/php/class-module.php index 0d7231d66..7e5cf723b 100644 --- a/common/php/class-module.php +++ b/common/php/class-module.php @@ -461,7 +461,7 @@ function users_select_form( $selected = null, $args = null ) { extract($parsed_args, EXTR_SKIP); $args = array( - 'who' => 'authors', + 'capability' => 'publish_posts', 'fields' => array( 'ID', 'display_name', @@ -478,7 +478,7 @@ function users_select_form( $selected = null, $args = null ) {