]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/rewrite.php
Wordpress 3.1.1
[autoinstalls/wordpress.git] / wp-includes / rewrite.php
index 839d2aeefc95997d36461c6ca8263e9cf2376daa..92d372e383771445a329ac450f320edcf7fa4f16 100644 (file)
@@ -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;
        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);
        }
 
                $this->extra_permastructs[$name] = array($struct, $ep_mask);
        }