[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:55:22 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:  Awaiting Review
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------

Comment (by burhandodhy):

 Replying to [ticket:53091 burhandodhy]:
 > `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


 Filter definition https://core.trac.wordpress.org/browser/tags/5.7.1/src
 /wp-includes/post-template.php#L1740


 **PR link**: https://github.com/WordPress/wordpress-develop/pull/1208

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53091#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list