';
+ }
+ }
echo $after;
}
}
diff --git a/wp-admin/wp-options-permalink.php b/wp-admin/wp-options-permalink.php
index cbc2277ed..a53c60045 100644
--- a/wp-admin/wp-options-permalink.php
+++ b/wp-admin/wp-options-permalink.php
@@ -132,8 +132,11 @@ $query = 'index.php?';
for ($i = 0; $i < count($tokens[0]); ++$i) {
if (0 < $i) $query .= '&';
$query .= str_replace($rewritecode, $queryreplace, $tokens[0][$i]) . '$'. ($i + 1);
-
}
+++$i;
+// Add post paged stuff
+$match .= '([0-9]+)?/?';
+$query .= "&page=$$i";
// Code for nice categories, currently not very flexible
$front = substr($permalink_structure, 0, strpos($permalink_structure, '%'));
@@ -141,10 +144,12 @@ $front = substr($permalink_structure, 0, strpos($permalink_structure, '%'));
$catmatch = preg_replace('|^/+|', '', $catmatch);
?>
- RewriteEngine On
- RewriteBase
- RewriteRule ^ [QSA]
- RewriteRule ^(.*) index.php?category_name=$1 [QSA]
+