#14315 closed defect (bug) (fixed)
comments_template() generates bad theme-compat path
Reported by: | dougal | Owned by: | westi |
---|---|---|---|
Milestone: | 3.0.1 | Priority: | normal |
Severity: | major | Version: | 3.0 |
Component: | Template | Keywords: | has-patch |
Focuses: | Cc: |
Description
In the final fallback case of comments_template()
it attempts to include theme-compat/comments.php
, however, the path it generates is incorrect, because it fails to prepend ABSPATH
.
This causes an error to be output to the page in older themes that rely on this feature.
Warning: require(wp-includes/theme-compat/comments.php): failed to open stream: No such file or directory in /var/www/vhosts/example.com/wordpress/wp-includes/comment-template.php on line 920 Fatal error: require(): Failed opening required 'wp-includes/theme-compat/comments.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/vhosts/example.com/wordpress/wp-includes/comment-template.php on line 920
Attachments (1)
Change History (10)
#3
@
15 years ago
Confusingly this all works in my test install as I must be lucky with the php path.
There are a number of places where the ABSPATH needs adding, working on this now.
#6
follow-up:
↓ 7
@
15 years ago
Erm, what is the purpose of error_log( $_template_file );
in [15433]?
Note: See
TracTickets for help on using
tickets.
Fix theme-compat.php path