WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#15702 closed defect (bug) (fixed)

login_form_(top|middle|bottom) should get $args

Reported by: aaroncampbell Owned by:
Milestone: 3.1 Priority: normal
Severity: normal Version: 3.0
Component: Template Keywords: has-patch
Focuses: Cc:

Description

The login_form_* filters would be so much more useful if they got the $args array from wp_login_form(). For example, I'm wanting to add the ability to redirect the user on a failed login. I can hook into wp_login_failed but I'd like to be able to specify the failed location when I'm calling wp_login_form()

Attachments (1)

15702.001.diff (1.9 KB) - added by aaroncampbell 5 years ago.

Download all attachments as: .zip

Change History (3)

@aaroncampbell5 years ago

comment:1 @scribu5 years ago

  • Milestone changed from Awaiting Review to 3.1

comment:2 @scribu5 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [16749]) Pass $args to login_form_* filters. Props aaroncampbell. Fixes #15702

Note: See TracTickets for help on using tickets.