[wp-trac] [WordPress Trac] #45390: Twenty Nineteen theme single post page Countable parameter warning

WordPress Trac noreply at wordpress.org
Wed Nov 21 09:08:31 UTC 2018


#45390: Twenty Nineteen theme single post page Countable parameter warning
--------------------------+------------------------------
 Reporter:  zipal         |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  5.0
 Severity:  major         |   Keywords:  needs-unit-tests
  Focuses:  template      |
--------------------------+------------------------------
 Twenty Nineteen theme gives following error on single post page (when we
 have featured image).

 {{{#!php
 Warning: count(): Parameter must be an array or an object that implements
 Countable in D:\wamp64\www\wp5\wp-content\themes\twentynineteen\header.php
 on line 37
 }}}

 I think it's because $discussion is not accessible by the function.
 Due to that post title and post meta is not showing up.

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


More information about the wp-trac mailing list