[wp-trac] [WordPress Trac] #34160: PHP notice if post_password field is missing from postpass request

WordPress Trac noreply at wordpress.org
Wed Oct 7 14:29:32 UTC 2015


#34160: PHP notice if post_password field is missing from postpass request
--------------------------------------+--------------------------
 Reporter:  johnbillion               |       Owner:  johnbillion
     Type:  defect (bug)              |      Status:  closed
 Priority:  low                       |   Milestone:  4.4
Component:  Login and Registration    |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  good-first-bug has-patch  |     Focuses:
--------------------------------------+--------------------------
Changes (by johnbillion):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"34909"]:
 {{{
 #!CommitTicketReference repository="" revision="34909"
 Prevent a PHP notice from appearing on `wp-login.php?action=postpass` when
 there's no `$_POST['post_password']` parameter. Redirects to the referer
 if there is one (if there isn't one it'll just exit with a blank screen;
 no need for a user-friendly error message here).

 Fixes #34160
 Props iamfriendly
 }}}

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


More information about the wp-trac mailing list