[wp-trac] [WordPress Trac] #61093: Bulk Action 'Send password reset' on site-users.php isnt coded

WordPress Trac noreply at wordpress.org
Sun Apr 28 23:51:50 UTC 2024


#61093: Bulk Action 'Send password reset' on site-users.php isnt coded
--------------------------------+-----------------------------
 Reporter:  ignatiusjeroe       |      Owner:  (none)
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Networks and Sites  |    Version:
 Severity:  normal              |   Keywords:
  Focuses:  multisite           |
--------------------------------+-----------------------------
 The bulk action 'Send password reset' on site-users.php has no code
 associated with it (explained below). By managing the Users for a
 particular blog you can individually send a password reset email by using
 the quick action menu option (by hovering over a row and selecting 'send
 password reset' - not available for user #1). Or use the bulk action
 field.

 Please notice that the URL for the bulk action is different  than the
 quick action option. The bulk action redirect to <form action='site-
 users.php?action=update-site'>, while quick action redirects to
 users.php?action=resetpassword&users=3&_wpnonce=fd7e888118. That is the
 issue!! users.php does handle the action correctly, while site-users.php
 is missing the script that handles it. More details below.

 The switch-statement on wp-admin/network/site-users.php @ line 61 has no
 case for value 'resetpassword' so the default case is used. This prompts
 WP to redirect to "/wp-admin/network/site-
 users.php?id=1&paged=1&update=resetpassword".

 The if-statement (line 236-288) is responsible for outputting the admin
 notice. But since the case-statement has no case for 'resetpassword' an
 empty message is output.

 So no password reset took place. This must be resolved. The easiest way is
 to implement the code block used in users.php that handles  password reset
 requests.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61093>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list