[buddypress-trac] [BuddyPress Trac] #8288: PHP 7.4 Notice: Trying to access array offset...

buddypress-trac noreply at wordpress.org
Mon May 4 23:38:41 UTC 2020


#8288: PHP 7.4 Notice:  Trying to access array offset...
--------------------------+---------------------
 Reporter:  mercime       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  6.0.0
Component:  Core          |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+---------------------
Changes (by r-a-y):

 * keywords:   => has-patch
 * milestone:  Awaiting Review => 6.0.0


Comment:

 Seems to be caused by WP 5.4.1 due to the `seems_utf8()` check used in
 `sanitize_file_name()`:
 https://github.com/WordPress/WordPress/commit/cdd7f88252487e243734d9bfd61477bf2d1f64f1

 `seems_utf8()` throws this notice when an integer value is passed and we
 do so in a few spots.

 Attached patch fixes this.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8288#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list