Changeset 31104
- Timestamp:
- 01/08/2015 09:59:57 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rewrite.php
r31090 r31104 2037 2037 */ 2038 2038 public function flush_rules($hard = true) { 2039 // Prevent this action from running before everyone has registered their rewrites 2040 if ( ! did_action( 'wp_loaded' ) ) { 2041 add_action( 'wp_loaded', array( $this, 'flush_rules' ) ); 2042 return; 2043 } 2044 2039 2045 delete_option('rewrite_rules'); 2040 2046 $this->wp_rewrite_rules();
Note: See TracChangeset
for help on using the changeset viewer.