[wp-trac] [WordPress Trac] #48599: Warning: count(): Parameter must be an array or an object that implements Countable in ../wp-admin/includes/plugin.php on line 1392

WordPress Trac noreply at wordpress.org
Sat Nov 23 04:12:49 UTC 2019


#48599: Warning: count(): Parameter must be an array or an object that implements
Countable in ../wp-admin/includes/plugin.php on line 1392
-------------------------------------------------+-------------------------
 Reporter:  ispreview                            |       Owner:
                                                 |  adamsilverstein
     Type:  defect (bug)                         |      Status:  accepted
 Priority:  normal                               |   Milestone:  5.3.1
Component:  Administration                       |     Version:  5.3
 Severity:  normal                               |  Resolution:
 Keywords:  dev-feedback has-patch needs-        |     Focuses:  ui
  testing has-unit-tests                         |
-------------------------------------------------+-------------------------
Changes (by welcher):

 * keywords:  dev-feedback has-patch needs-testing needs-unit-tests => dev-
     feedback has-patch needs-testing has-unit-tests


Comment:

 @garrett-eclipse your patch works great with my local tests. I have also
 added some unit tests to confirm that these errors are not produced and to
 ensure that an incorrect priority value fires the `_doing_it_wrong`.

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


More information about the wp-trac mailing list