X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/f9001779751f83dc8a10e478bfecb4d8dd5f964c..e9d988989fe37ab8c5f903e47fbe36e6e00dc51f:/wp-includes/rewrite.php diff --git a/wp-includes/rewrite.php b/wp-includes/rewrite.php index 839d2aee..92d372e3 100644 --- a/wp-includes/rewrite.php +++ b/wp-includes/rewrite.php @@ -1857,6 +1857,8 @@ class WP_Rewrite { function add_permastruct($name, $struct, $with_front = true, $ep_mask = EP_NONE) { if ( $with_front ) $struct = $this->front . $struct; + else + $struct = $this->root . $struct; $this->extra_permastructs[$name] = array($struct, $ep_mask); }