Opened 20 months ago

Last modified 19 months ago

#18877 new enhancement

DRY up rewrite rule matching

Reported by: scribu Owned by:
Priority: normal Milestone: Awaiting Review
Component: Rewrite Rules Version:
Severity: normal Keywords: has-patch
Cc: landwire

Description (last modified by scribu)

Currently, the whole rewrite matching loop is duplicated: once in WP::parse_request() and once in url_to_postid().

Re-posting the patch from #16687 for consideration.

Attachments (1)

18877.diff (5.1 KB) - added by scribu 20 months ago.

Download all attachments as: .zip

Change History (4)

  • Description modified (diff)
  • Cc landwire added

Hi Scribu,

kind of lost with the following. Just added myself to 3 trac tickets, which might be addressing this issue, but I am not sure:

I am looking for the possibility to have a permalink of the following:

%role%/%author%/%posttype%/%postname%

Basically adding %role% and %posttype% as structure tags. Is that at all possible?
Many thanks for any hints,
Sascha

Please stop spamming trac with your question!

I already replied here: http://core.trac.wordpress.org/ticket/16687#comment:63

Note: See TracTickets for help on using tickets.