[wp-trac] [WordPress Trac] #14315: comments_template() generates bad theme-compat path
WordPress Trac
wp-trac at lists.automattic.com
Thu Jul 15 15:40:04 UTC 2010
#14315: comments_template() generates bad theme-compat path
--------------------------+-------------------------------------------------
Reporter: dougal | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Template | Version: 3.0
Severity: major | Keywords: has-patch
--------------------------+-------------------------------------------------
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
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14315>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list