Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#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)

#1 @daslicht
11 years ago

  • Resolutioninvalid
  • Status newclosed

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
11 years ago

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