Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#8821 closed defect (bug) (fixed)

Error in function paginate_comments_links with permalinks

Reported by: AntonShevchuk Owned by: anonymous
Priority: normal Milestone: 2.7.1
Component: General Version: 2.7
Severity: normal Keywords: comments
Cc:

Description

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

Change History (2)

comment:1   ryan4 years ago

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

(In [10335]) Fix paginate comment link slashing. Props AntonShevchuk. fixes #8821 for trunk

comment:2   ryan4 years ago

(In [10336]) Fix paginate comment link slashing. Props AntonShevchuk. fixes #8821 for 2.7

Note: See TracTickets for help on using tickets.