[wp-trac] [WordPress Trac] #37071: PHP 7.1.0 changed how they handle string vs array-indexes.

WordPress Trac noreply at wordpress.org
Tue Jun 14 15:33:08 UTC 2016


#37071: PHP 7.1.0 changed how they handle string vs array-indexes.
--------------------------+-----------------------------
 Reporter:  simonvik      |       Owner:  SergeyBiryukov
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.6
Component:  Users         |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------------
Changes (by SergeyBiryukov):

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


Comment:

 In [changeset:"37697"]:
 {{{
 #!CommitTicketReference repository="" revision="37697"
 Users: `wp_signon()` expects an array as the `$credentials` argument, not
 a string.

 If an empty string was passed, redeclare it as an empty array to avoid a
 warning and a fatal error in PHP 7.1.0 Alpha 1.

 Props simonvik.
 Fixes #37071.
 }}}

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


More information about the wp-trac mailing list