Pass through the function argument so rules can actually be added to the top of the stack, props santos
git-svn-id: https://develop.svn.wordpress.org/trunk@5959 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
37704dc738
commit
3b74215727
@ -6,7 +6,7 @@
|
||||
//Add a straight rewrite rule
|
||||
function add_rewrite_rule($regex, $redirect, $after = 'bottom') {
|
||||
global $wp_rewrite;
|
||||
$wp_rewrite->add_rule($regex, $redirect);
|
||||
$wp_rewrite->add_rule($regex, $redirect, $after);
|
||||
}
|
||||
|
||||
//Add a new tag (like %postname%)
|
||||
|
Loading…
x
Reference in New Issue
Block a user