[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 17:18:42 UTC 2021
#53091: [Twenty Twenty-One] Incorrect use of `the_password_form` filter argument
------------------------------------+----------------------------
Reporter: burhandodhy | Owner: davidbaumwald
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 5.7.2
Component: Bundled Theme | Version: 5.6
Severity: normal | Resolution:
Keywords: has-patch dev-feedback | Focuses:
------------------------------------+----------------------------
Changes (by davidbaumwald):
* keywords: has-patch needs-refresh => has-patch dev-feedback
Comment:
@SergeyBiryukov With [50791] in place, what would you like to see done on
this ticket?
Option 1: Add the global for `$post` and adding to the docblock, with
`twenty_twenty_one_password_form` accepting no params.
Option 2: Update [https://core.trac.wordpress.org/browser/tags/5.7/src
/wp-content/themes/twentytwentyone/inc/template-functions.php#L403 the
filter] to pass the second arg for the `$post` and update
`twenty_twenty_one_password_form` to use both params.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53091#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list