[wp-trac] [WordPress Trac] #53091: [Twenty Twenty-One] Incorrect use of `the_password_form` filter argument
WordPress Trac
noreply at wordpress.org
Mon Apr 26 14:59:57 UTC 2021
#53091: [Twenty Twenty-One] Incorrect use of `the_password_form` filter argument
---------------------------+---------------------
Reporter: burhandodhy | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.7.2
Component: Bundled Theme | Version: 5.6
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
---------------------------+---------------------
Changes (by davidbaumwald):
* version: => 5.6
* component: General => Bundled Theme
* milestone: Awaiting Review => 5.7.2
Old description:
> `the_password_form` filter function has only one parameter `$output` that
> is hthml output of from. Where Twenty Twenty-One theme tries to use it as
> `$post` object.
>
> https://github.com/WordPress/wordpress-develop/blob/master/src/wp-
> content/themes/twentytwentyone/inc/template-functions.php#L395
New description:
`the_password_form` filter function has only one parameter `$output` that
is html output of from. Where Twenty Twenty-One theme tries to use it as
`$post` object.
https://github.com/WordPress/wordpress-develop/blob/master/src/wp-
content/themes/twentytwentyone/inc/template-functions.php#L395
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53091#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list