[wp-trac] [WordPress Trac] #52013: Duplicate wp_authorize_application_password_form actions

WordPress Trac noreply at wordpress.org
Thu Dec 10 11:10:09 UTC 2020


#52013: Duplicate wp_authorize_application_password_form actions
----------------------------------+----------------------------------------
 Reporter:  johnbillion           |      Owner:  (none)
     Type:  defect (bug)          |     Status:  new
 Priority:  normal                |  Milestone:  5.6.1
Component:  Application           |    Version:  5.6
  Passwords                       |
 Severity:  normal                |   Keywords:  needs-patch good-first-bug
  Focuses:  docs                  |
----------------------------------+----------------------------------------
 There are two instances of the `wp_authorize_application_password_form`
 actions, but both are documented with different documentation and an
 apparent different use case. The documented parameters for the first
 instance are incorrect.

 The first fires in the Authorize Application Password new password
 section, and the second fires in the Authorize Application Password form
 before the submit buttons.

 It looks to me like the first action should be renamed as it does not fire
 within the password form, it fires when showing the user their new
 password.

 Refs:

 1. https://core.trac.wordpress.org/browser/tags/5.6/src/wp-admin
 /authorize-application.php?marks=202-211#L200
 2. https://core.trac.wordpress.org/browser/tags/5.6/src/wp-admin
 /authorize-application.php?marks=227-241#L225

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


More information about the wp-trac mailing list