Opened 20 years ago
Closed 19 years ago
#3930 closed enhancement (fixed)
get_pagenum_link() needs some love
| Reported by: | markjaquith | Owned by: | rob1n |
|---|---|---|---|
| Priority: | low | Milestone: | 2.3 |
| Component: | Administration | Version: | 2.1.2 |
| Severity: | normal | Keywords: | has-patch needs-testing |
| Cc: | Focuses: |
Description
get_pagenum_link() is fairly Frankenstein's Monster-ish. It isn't even using add_query_arg()
Enclosed patch is just a first attempt... I'll revisit it and clean it up, as well as address XSS-escaping.
Attachments (4)
Change History (19)
#1
@
20 years ago
Looking good so far. It's as ugly as it is because touching it often breaks something, so watch out. :-)
#5
@
19 years ago
- Keywords commit added; needs-testing removed
- Status new → assigned
Patch works fine for me.
#7
@
19 years ago
- Resolution fixed
- Status closed → reopened
This breaks the 'Previous Entries' link paging for categories.
#8
@
19 years ago
- Status reopened → new
Breaks author view too.
I think remove_query_arg( 'paged' ) is removing more than paged, but I'm going to keep digging.
#11
@
19 years ago
- Cc added
- Keywords has-patch needs-testing added
- Status new → assigned
Alright, that seems to take care of it. Please test and report back.
#13
@
19 years ago
Just tried this new get_pagenum_link() on a Wordpress 2.0 blog, and it works fine with everything except when doing a search where it adds /page/2/ instead of &paged=2 for the following pages.
Not sure if this is an issue for Wordpress 2.3
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
First attempt