Opened 6 years ago
Closed 6 years ago
#45390 closed defect (bug) (duplicate)
Twenty Nineteen theme single post page Countable parameter warning
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Bundled Theme | Keywords: | has-patch |
Focuses: | Cc: |
Description
Twenty Nineteen theme gives following error on single post page (when we have featured image).
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.
Change History (9)
#1
@
6 years ago
- Component changed from General to Bundled Theme
- Focuses template removed
- Keywords needs-unit-tests removed
- Resolution set to invalid
- Severity changed from major to normal
- Status changed from new to closed
- Version 5.0 deleted
This ticket was mentioned in Slack in #core by sergey. View the logs.
6 years ago
#4
@
6 years ago
- Resolution invalid deleted
- Status changed from closed to reopened
Corresponding GitHub ticket:
https://github.com/WordPress/twentynineteen/issues/659
This issue was fixed on GitHub, and then a patch was uploaded to Trac here:
https://core.trac.wordpress.org/attachment/ticket/45424/45424.16.patch
Unfortunately, it didn't make it in for 5.0. The patch should be ready to go for the next release, but I'm going to reopen this ticket so we can continue tracking it here until that happens.
Hi @zipal, Welcome to WordPress Trac! Thank you for your ticket.
Twenty Nineteen is currently being developed in its own repository, would you mind submitting this as an issue or PR over there?
https://github.com/WordPress/twentynineteen