[wp-trac] [WordPress Trac] #58407: resetpassword action on users.php (users list page) handles retrieve_password() return incorrectly

WordPress Trac noreply at wordpress.org
Fri May 26 05:54:41 UTC 2023


#58407: resetpassword action on users.php (users list page) handles
retrieve_password() return incorrectly
-------------------------------------------------+-------------------------
 Reporter:  letraceursnork                       |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  6.3
Component:  Users                                |     Version:  6.2.2
 Severity:  trivial                              |  Resolution:
 Keywords:  good-first-bug has-patch needs-      |     Focuses:  ui,
  refresh                                        |  administration
-------------------------------------------------+-------------------------

Comment (by letraceursnork):

 How about that behavior:
 1. Count `reset_count` AND `reset_count_success` params both
 2. If `reset_count_success === 0` - show some message like 'Could not send
 any passwords because of error' with red-colored border (.error class)
 3. If `reset_count_success !==0 && reset_count_success < reset_count` -
 show smth like 'Passwords sent to %s users, hasn't sent to %s users
 because of error` with yellow-colored border (.notice-warning class)
 4. If `reset_count_success === reset_count && reset_count > 0` - show
 usual message 'Passwords sent to %s users` with green-colored border, just
 like now

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58407#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list