[wp-trac] [WordPress Trac] #35812: Errors in class.wp-dependencies.php
WordPress Trac
noreply at wordpress.org
Fri Feb 12 14:11:21 UTC 2016
#35812: Errors in class.wp-dependencies.php
------------------------------+-----------------------------
Reporter: sebastian.pisula | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
------------------------------+-----------------------------
On client WebSite in debug.log I can see errors:
[12-Feb-2016 13:59:30 UTC] PHP Warning: in_array() expects parameter 2 to
be array, null given in /wp-includes/class.wp-dependencies.php on line 342
[12-Feb-2016 13:59:30 UTC] PHP Warning: Invalid argument supplied for
foreach() in /wp-includes/class.wp-dependencies.php on line 337
I think that should be if with condition:
{{{#!php
<?php
if ( is_array( $queue ) && ! empty( $queue ) ) {
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35812>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list