Opened 16 years ago
Last modified 7 years ago
#16843 new defect (bug)
wp_unique_post_slug() doesn't check pagination base when CPT has archive
| Reported by: | scribu | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Posts, Post Types | Version: | 3.1 |
| Severity: | minor | Keywords: | has-patch needs-unit-tests |
| Cc: | Focuses: |
Description
Title says it all.
Attachments (5)
Change History (20)
#2
@
16 years ago
For better readability of the code, please add logical operators (mostly || in your patch) to the front of the line so it's easier to read how lines are in relation to each other.
#4
@
15 years ago
- Milestone Awaiting Review → 3.1
What's the actual code change here? Just the final block of code, checking the pagination base?
#5
@
15 years ago
- Milestone 3.1 → 3.2
You did mean 3.2, right?
The added line is indeed in the final block:
|| ( $post_type_obj->has_archive && $wp_rewrite->pagination_base == $slug )
#6
@
15 years ago
- Version → 3.1
You probably meant to set the version, but I'll leave the milestone also.
#10
@
14 years ago
- Milestone Future Release → 3.6
Patch refreshed so it applies cleanly against trunk
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
16843.diff has the added bonus that it avoids an unnecessary query, if any of the preceding conditions match.