[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 22:16:10 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                       |  Resolution:
 Keywords:  has-patch reporter-feedback  |     Focuses:
-----------------------------------------+------------------------------
Changes (by jorbin):

 * keywords:  has-patch => has-patch reporter-feedback


Comment:

 Can you provide steps to reproduce this? Using a stock install of
 WordPress, I'm unable to replicate it. It would appear as though a piece
 of custom code is overriding the global variable `$_wp_admin_css_colors`
 and that is causing the notice for you.

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


More information about the wp-trac mailing list