Opened 16 years ago
Closed 12 years ago
#16468 closed defect (bug) (fixed)
Twenty Ten: 404 page with /page/2 shows page number
| Reported by: | rob1n | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.0 |
| Component: | Bundled Theme | Version: | 3.0 |
| Severity: | minor | Keywords: | has-patch commit |
| Cc: | Focuses: |
Description
In 2010, there's a custom part of the title that shows " | Page 2" etc for paged posts.
Yet, even if it's a 404, it still shows this if there's a $page or $paged variable.
e.g. /2012/04/page/2 (picked to obviously 404) is: Page not found | robinadr | Page 2 on my site.
Checked trunk, same problem there.
Attachments (4)
Change History (17)
#3
@
16 years ago
- Cc removed
Yeah, having to global those variables and do the max() handling in a theme seems clumsy.
How about is_paged() and get_current_page_number()?
#4
@
16 years ago
We already have is_paged(), which checks the is_paged query flag. I think we need more for when it is instead the page query variable.
This ticket was mentioned in IRC in #wordpress-dev by nacin. View the logs.
13 years ago
This ticket was mentioned in IRC in #wordpress-dev by doc-bot. View the logs.
13 years ago
#8
@
13 years ago
- Component Themes → Bundled Theme
- Keywords needs-refresh added
- Milestone Awaiting Review → Future Release
- Summary 404 page with /page/2 shows page # → Twenty Ten: 404 page with /page/2 shows page number
#10
@
12 years ago
- Keywords commit added; needs-refresh removed
- Milestone Future Release → 4.0
Tested at WordCamp Switzerland contributor day.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
It'd be great to have a helper to prevent the page/paged conditional as well as the max() call. Like get_queried_page_num() and has_multiple_pages() (for other checks in the theme).