[wp-trac] [WordPress Trac] #47774: PHP 7.2 > Warning: count(): Parameter must be an array or an object that implements Countable in .../wp-admin/user-edit.php on line 285
WordPress Trac
noreply at wordpress.org
Thu Jul 25 21:04:23 UTC 2019
#47774: PHP 7.2 > Warning: count(): Parameter must be an array or an object that
implements Countable in .../wp-admin/user-edit.php on line 285
--------------------------+-----------------------------
Reporter: denismack | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version: 5.2.2
Severity: normal | Keywords: has-patch
Focuses: |
--------------------------+-----------------------------
Count() no longer returns null.
Incompatible with PHP > 7.2
<core>/wp-admin/user-edit.php on line 285:
{{{#!php
<?php
if ( count( $_wp_admin_css_colors ) > 1 && has_action(
'admin_color_scheme_picker' ) ) :
}}}
{{{#!php
<?php
if ( is_array( $_wp_admin_css_colors ) && count( $_wp_admin_css_colors ) >
1 && has_action( 'admin_color_scheme_picker' ) ) :
}}}
Fixed count(): Parameter must be an array
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47774>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list