[wp-trac] [WordPress Trac] #46445: Parameter must be an array or an object that implements Countable

WordPress Trac noreply at wordpress.org
Fri Mar 8 12:40:19 UTC 2019


#46445: Parameter must be an array or an object that implements Countable
--------------------------+-----------------------------
 Reporter:  sanjeevsetu   |      Owner:  (none)
     Type:  defect (bug)  |     Status:  assigned
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  5.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Warning: count(): Parameter must be an array or an object that implements
 Countable in C:\xampp\htdocs\wordpress\wp-includes\post-template.php on
 line 293


 Getting the warning when I use "get_the_excerpt()" in wp_head hook.

 https://prnt.sc/mv1oiy

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46445>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list