Ticket #37892: 37892.patch
File 37892.patch, 508 bytes (added by , 8 years ago) |
---|
-
wp-includes/class-wp-rewrite.php
diff --git wp-includes/class-wp-rewrite.php wp-includes/class-wp-rewrite.php index 2c57615..469a9df 100644
class WP_Rewrite { 1475 1475 if ( empty($this->rules) ) { 1476 1476 $this->matches = 'matches'; 1477 1477 $this->rewrite_rules(); 1478 if ( ! did_action( 'wp_loaded' ) ) { 1479 add_action( 'wp_loaded', array( $this, 'flush_rules' ) ); 1480 return $this->rules; 1481 } 1478 1482 update_option('rewrite_rules', $this->rules); 1479 1483 } 1480 1484