Opened 14 years ago
Closed 14 years ago
#9132 closed defect (bug) (wontfix)
posts_nav_link() produces extra whitespace
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | lowest | |
Severity: | trivial | Version: | 2.7 |
Component: | Template | Keywords: | |
Focuses: | Cc: |
Description
A most tiny bug, but
posts_nav_link() produces extra whitespace. Though non-rendering, I
though you might want to know. I replaced it with a @ below so you
might notice it:
<a href="http://localhost/articles/"@>« Previous Page</a>
— <a href="http://localhost/articles/index.php/page/3"@>Next
Page »</a>
<a href="http://localhost/articles/index.php/page/2" >Next Page »</a>
Change History (2)
Note: See
TracTickets for help on using
tickets.
This is done so that extra attributes can be added to the link via a filter. Allowing that extra white space requires less code. To remove that white space would take at least 2 more lines of code one of which would be an if statement checking if $args is set or not. As this doesn't break any validation I cannot think of a reason that this needs to be fixed.