scripts.mit.edu
/
autoinstalls
/
wordpress.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Wordpress 3.1.1
[autoinstalls/wordpress.git]
/
wp-includes
/
rewrite.php
diff --git
a/wp-includes/rewrite.php
b/wp-includes/rewrite.php
index 839d2aeefc95997d36461c6ca8263e9cf2376daa..92d372e383771445a329ac450f320edcf7fa4f16 100644
(file)
--- 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);
}