[wp-trac] [WordPress Trac] #8821: Error in function
paginate_comments_links with permalinks
WordPress Trac
wp-trac at lists.automattic.com
Thu Jan 8 18:19:33 GMT 2009
#8821: Error in function paginate_comments_links with permalinks
---------------------------+------------------------------------------------
Reporter: AntonShevchuk | Owner: anonymous
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.7.1
Component: General | Version: 2.7
Severity: normal | Keywords: comments
---------------------------+------------------------------------------------
I use next structure of permalinks:
{{{
/%category%/%postname%.html
}}}
Function paginate_comments_links generate wrong link like:
{{{
/lorem-ipsum/lorem-ipsum-part-4.htmlcomment-page-2#comments
}}}
My fix in file '''link-template.php''' line 1340:
{{{
$defaults['base'] = user_trailingslashit(rtrim(get_permalink(), '/') .
'/comment-page-%#%', 'commentpaged');
}}}
Result:
{{{
/lorem-ipsum/lorem-ipsum-part-4.html/comment-page-2#comments
}}}
This is fix tested with all default permalinks structure
--
Ticket URL: <http://trac.wordpress.org/ticket/8821>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list