Skip to content

Commit

Permalink
Fix WP 5.9 deprecation notice with rebasaurus console 28 Sep 15:46 (#701
Browse files Browse the repository at this point in the history
)

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
  • Loading branch information
rebeccahum authored Oct 4, 2023
1 parent 529c2cc commit 8c39de0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/php/class-module.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -478,7 +478,7 @@ function users_select_form( $selected = null, $args = null ) {

<?php if( !empty($users) ) : ?>
<ul class="<?php echo esc_attr( $list_class ) ?>">
<?php foreach( $users as $user ) :
<?php foreach( $users as $user ) :
$checked = ( in_array($user->ID, $selected) ) ? 'checked="checked"' : '';
// Add a class to checkbox of current user so we know not to add them in notified list during notifiedMessage() js function
$current_user_class = ( get_current_user_id() == $user->ID ) ? 'class="post_following_list-current_user" ' : '';
Expand Down

0 comments on commit 8c39de0

Please sign in to comment.