Make WordPress Core

Opened 15 years ago

Closed 12 years ago

Last modified 6 years ago

#18084 closed enhancement (fixed)

Comments Page Rewrite Customization

Reported by: webord Owned by: SergeyBiryukov
Priority: normal Milestone: 4.2
Component: Rewrite Rules Version: 3.2
Severity: normal Keywords: has-patch commit
Cc: Focuses:

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)

rewrite.php​ (57.6 KB ) - added by webord 15 years ago.
New Rewrite File
rewrite.2.php​ (57.6 KB ) - added by webord 15 years ago.
New Rewrite File
18084.patch​ (877 bytes ) - added by SergeyBiryukov 15 years ago.
18084.2.patch​ (5.3 KB ) - added by johnbillion 12 years ago.

Download all attachments as: .zip

Change History (23)

@webord
15 years ago

New Rewrite File

@webord
15 years ago

New Rewrite File

#1 @webord
15 years ago

Sorry for the double file...

#2 @webord
15 years ago

  • Version → 3.2

#3 @scribu
15 years ago

  • Keywords 2nd-opinion needs-testing removed

Would be a lot easier to review if you submitted this as a diff.

#4 @webord
15 years ago

  • Resolution → invalid
  • Status new → closed

Yes, I didn't know about .diff files at the time. And now I dont really remember what I've changed.

#5 @helenyhou
15 years ago

  • Milestone Awaiting Review

#6 @SergeyBiryukov
15 years ago

  • Keywords has-patch added; needs-patch removed
  • Milestone → Awaiting Review
  • Resolution invalid
  • Status closed → reopened

18084.patch​ contains the changes from rewrite.php​.

#7 @chriscct7
12 years ago

  • Resolution → duplicate
  • Status reopened → closed

Duplicate of (and implemented in) #12507

#8 @SergeyBiryukov
12 years ago

  • Resolution duplicate
  • Status closed → reopened

Comment pagination base is still hardcoded, #12507 did not affect it.

#9 @chriscct7
12 years ago

@sergeybiryukov This is the changeset for that trac ticket which I believe to be a duplicate (I could be wrong though): [15582]

Note the changes made for rewrite.php are the same as the proposed changes in the #18084 patch but just with different variable names.

Last edited 12 years ago by SergeyBiryukov (previous) (diff)

#10 @SergeyBiryukov
12 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 @chriscct7
12 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).

#12 @johnbillion
12 years ago

  • Milestone Awaiting Review → 4.1

#13 @johnbillion
12 years ago

18084.2.patch​ replaces hardcoded usage of comment-page with the comment pagination base.

#14 @johnbillion
12 years ago

  • Keywords 4.2-early added
  • Milestone 4.1 → Future Release

#15 @iseulde
12 years ago

  • Milestone Future Release → 4.2

has-patch 4.2-early so moving to 4.2.

This ticket was mentioned in ​Slack in #core by drew. ​View the logs.


12 years ago

#17 @johnbillion
12 years ago

  • Keywords commit added; 4.2-early removed

#18 @SergeyBiryukov
12 years ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status reopened → closed

In 31459:

Replace hardcoded usage of comment-page with the comment pagination base.

props johnbillion, SergeyBiryukov, webord.
fixes #18084.

#19 @SergeyBiryukov
6 years ago

#27631 was marked as a duplicate.

Note: See TracTickets for help on using tickets.