[wp-trac] [WordPress Trac] #59373: TypeError: str_contains() argument must be of type string, array given in wp-login.php

WordPress Trac noreply at wordpress.org
Thu Apr 18 06:22:37 UTC 2024


#59373: TypeError: str_contains() argument must be of type string, array given in
wp-login.php
------------------------------------+--------------------------------
 Reporter:  TimoTijhof              |       Owner:  SergeyBiryukov
     Type:  defect (bug)            |      Status:  closed
 Priority:  normal                  |   Milestone:  6.6
Component:  Login and Registration  |     Version:  6.3.1
 Severity:  normal                  |  Resolution:  fixed
 Keywords:  has-patch php80         |     Focuses:  php-compatibility
------------------------------------+--------------------------------
Changes (by SergeyBiryukov):

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


Comment:

 In [changeset:"58023" 58023]:
 {{{
 #!CommitTicketReference repository="" revision="58023"
 Login and Registration: Check that `redirect_to` is a string in `wp-
 login.php`.

 This prevents a fatal error if an array is passed instead.

 Follow-up to [2876], [4969], [7524], [8701], [25701], [31417], [49109].

 Props TimoTijhof.
 Fixes #59373.
 }}}

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


More information about the wp-trac mailing list