#18084 closed enhancement (fixed)
Comments Page Rewrite Customization
Reported by: | webord | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 4.2 | Priority: | normal |
Severity: | normal | Version: | 3.2 |
Component: | Rewrite Rules | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
So I was doing some stuff on translation of the rewrite URLs, to pt-BR I've run into a problem, that the Comments Page Rules cannot be changed using a base variable, like all the other bases.
So Im attaching a file to this ticket with the modified File, but I didn't test if its a good solution, thats the one I can think of.
I really would like to see this enchancement.
Thanks,
Attachments (4)
Change History (23)
#3
@
13 years ago
- Keywords 2nd-opinion needs-testing removed
Would be a lot easier to review if you submitted this as a diff.
#4
@
13 years ago
- Resolution set to invalid
- Status changed from new to closed
Yes, I didn't know about .diff files at the time. And now I dont really remember what I've changed.
#6
@
13 years ago
- Keywords has-patch added; needs-patch removed
- Milestone set to Awaiting Review
- Resolution invalid deleted
- Status changed from closed to reopened
18084.patch contains the changes from rewrite.php.
#7
@
10 years ago
- Resolution set to duplicate
- Status changed from reopened to closed
Duplicate of (and implemented in) #12507
#8
@
10 years ago
- Resolution duplicate deleted
- Status changed from closed to reopened
Comment pagination base is still hardcoded, #12507 did not affect it.
#9
@
10 years ago
#10
@
10 years ago
The changes are different. The patch here was created after that changeset, not before.
[15582] replaced page
with $this->pagination_base
in $pageregex
.
18084.patch replaces comment-page
with $this->comments_pagination_base
in the next line.
#11
@
10 years ago
Ah, indeed you are correct sir. My apologies.
The proposed patch look good to go, but whoever merges it will want to update the @since on the new object parameter (as it's currently set to 3.5 and the earliest it could be in core would be 4.1).
#13
@
10 years ago
18084.2.patch replaces hardcoded usage of comment-page
with the comment pagination base.
#15
@
10 years ago
- Milestone changed from Future Release to 4.2
has-patch 4.2-early so moving to 4.2.
New Rewrite File