Skip to content
Commit e3b15971 authored by Jon Cave's avatar Jon Cave
Browse files

Upgrade add_permastruct() to allow more control over...

Upgrade add_permastruct() to allow more control over WP_Rewrite::generate_rewrite_rules(). See #16092.

The third argument is now a configuration array that mirrors the parameters of generate_rewrite_rules()
and allows for add_permastruct() specific args (i.e. with_front). The full configuration is stored in
WP_Rewrite::$extra_permastructs to be used by WP_Rewrite::rewrite_rules().


git-svn-id: https://core.svn.wordpress.org/trunk@19743 1a063a9b-81f0-0310-95a4-ce76da25c4cd
parent 6dd6eb1a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment