[wp-trac] [WordPress Trac] #53091: [Twenty Twenty-One] Incorrect use of `the_password_form` filter argument
WordPress Trac
noreply at wordpress.org
Tue May 11 18:24:55 UTC 2021
#53091: [Twenty Twenty-One] Incorrect use of `the_password_form` filter argument
------------------------------+----------------------------
Reporter: burhandodhy | Owner: davidbaumwald
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.8
Component: Bundled Theme | Version: 5.6
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses:
------------------------------+----------------------------
Changes (by davidbaumwald):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"50841" 50841]:
{{{
#!CommitTicketReference repository="" revision="50841"
Bundled Theme: Update `twenty_twenty_one_password_form` function to
actually use a `$post` parameter.
The `twentytwentyone` filtered `the_password_form` with a
`twenty_twenty_one_password_form` callback that, by default, passed only
one parameter that was assumed to be the post or post ID. However, the
first parameter for `the_password_form` is the filtered output value.
This fix updates both the filter reference and callback to use two
parameters: `$output` and `$post`.
Props burhandodhy, mukesh27.
Fixes #53091.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53091#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list