Pass through the function argument so rules can actually be added to the top of the stack, props santos
git-svn-id: http://svn.automattic.com/wordpress/trunk@5959 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3fe16de587
commit
9b742b7959
|
@ -6,7 +6,7 @@
|
||||||
//Add a straight rewrite rule
|
//Add a straight rewrite rule
|
||||||
function add_rewrite_rule($regex, $redirect, $after = 'bottom') {
|
function add_rewrite_rule($regex, $redirect, $after = 'bottom') {
|
||||||
global $wp_rewrite;
|
global $wp_rewrite;
|
||||||
$wp_rewrite->add_rule($regex, $redirect);
|
$wp_rewrite->add_rule($regex, $redirect, $after);
|
||||||
}
|
}
|
||||||
|
|
||||||
//Add a new tag (like %postname%)
|
//Add a new tag (like %postname%)
|
||||||
|
@ -953,4 +953,4 @@ class WP_Rewrite {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue