Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#34578 closed defect (bug) (invalid)

Notice: Theme without comments.php is deprecated since version 3.0 with no alter,

Reported by: daslicht's profile daslicht Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.4
Component: Themes Keywords:
Focuses: Cc:

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)

#1 @daslicht
9 years ago

  • Resolution set to invalid
  • Status changed from new to closed

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.

#2 @johnbillion
9 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.