Opened 17 years ago
Closed 11 years ago
#10203 closed enhancement (wontfix)
posts_nav_link ignoring blank function parameters
| Reported by: | milanmk | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Posts, Post Types | Version: | 2.8 |
| Severity: | normal | Keywords: | posts_nav_link |
| Cc: | Focuses: | template |
Description
posts_nav_link shows both next and previous links including link seperator even though the respective function parameters are blank.
<div id="page-nav-prev"><?php posts_nav_link('', '« Previous Page', '') ?></div>
<div id="page-nav-next"><?php posts_nav_link('', '', 'Next Page »') ?></div>
Attachments (1)
Change History (8)
#1
@
17 years ago
- Component General → Template
- Milestone Unassigned → Future Release
- Type defect (bug) → enhancement
#3
@
17 years ago
A workaround for now is to set the paramaters to a blank space.
<?php posts_nav_link(' ',' ','« Older Entries') ?>
<?php posts_nav_link(' ','Newer Entries »',' ') ?>
#4
@
16 years ago
Issue still occurs in v 3.0. Did not occur in v 2.7. I would classify as a bug not an enhancement since it used to work. Workaround as described above is still valid.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
see #10204