#34578 closed defect (bug) (invalid)
Notice: Theme without comments.php is deprecated since version 3.0 with no alter,
| Reported by: | daslicht | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Themes | Version: | 4.4 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
WP 4.4
I have the following location for my comments.php:
/template_parts/_includes/comments.php
When I include it like this:
comments_template('template_parts/_includes/comments.php')
The comments get displayed but I get the notice:
Notice: Theme without comments.php is deprecated since version 3.0 with no alter
I even tried adding a dummy comments.php to the root of the theme but i still get that notice.
why?
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
The notice is gone If I add a absolute path like this:
comments_template('/template_parts/_includes/comments.php')The docs say we should add a relative path.