[wp-trac] [WordPress Trac] #16840: add_rewrite_rule() should accept an array for the $redirect parameter
WordPress Trac
noreply at wordpress.org
Wed Sep 30 01:10:06 UTC 2015
#16840: add_rewrite_rule() should accept an array for the $redirect parameter
-------------------------------------------------+-------------------------
Reporter: scribu | Owner:
Type: enhancement | wonderboymusic
Priority: normal | Status: closed
Component: Rewrite Rules | Milestone: 4.4
Severity: normal | Version:
Keywords: has-patch needs-testing has-unit- | Resolution: fixed
tests | Focuses:
-------------------------------------------------+-------------------------
Changes (by wonderboymusic):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"34708"]:
{{{
#!CommitTicketReference repository="" revision="34708"
Rewrite: allow `add_rewrite_rule|WP_Rewrite::add_rule()` to accept an
associative array for the value of `$redirect` instead of requiring a
query string.
Adds unit tests.
Props scribu, DrewAPicture.
Fixes #16840.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/16840#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list