Permalink
Browse files

set $wp_rewrite->matches, since it might not be set yet. prevents flu…

…shing rewrite rules on every page load
  • Loading branch information...
1 parent 3c59e00 commit 1e8aebc9364518c1a533122d3d455ae0465f6a2d @jbrinley committed May 22, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 WP_Route.class.php
View
@@ -230,6 +230,7 @@ private function generate_rewrite() {
*/
protected function preg_index( $int ) {
global $wp_rewrite;
+ $wp_rewrite->matches = 'matches'; // because it may not be set, yet
return $wp_rewrite->preg_index($int);
}
}

0 comments on commit 1e8aebc

Please sign in to comment.