previous_post_link and next_post_link appear to be faulty
|Reported by:||denyerec||Owned by:||anonymous|
|Severity:||normal||Keywords:||template output links bg|has-patch|
Extraneous variable $sqlcat on lines 267 and 300 of template-functions-links.php in the functions get_next_post and get_previous_post
The purpose of this variable is unclear, and the link generating functions do not appear to work with the exclude categories parameter. The parameter does not seem to influence the links that are generated.
EG if the following call is made from a template:
<?php previous_post_link('« %link','%title',false,3); ?>
Then category 3 links still appear and the docs indicate that they shouldn't.
Change History (8)
- Resolution fixed deleted
- Status changed from closed to reopened
- Version changed from 2.0 to 2.0.3