Changeset 11579
- Timestamp:
- 06/16/2009 02:50:55 AM (15 years ago)
- Location:
- branches/2.8
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.8/wp-admin/admin.php
r11318 r11579 147 147 // Make sure rules are flushed 148 148 global $wp_rewrite; 149 $wp_rewrite->flush_rules( );149 $wp_rewrite->flush_rules(false); 150 150 151 151 exit(); -
branches/2.8/wp-admin/includes/misc.php
r11530 r11579 73 73 } 74 74 75 $f = fopen( $filename, 'w' ); 75 if ( !$f = @fopen( $filename, 'w' ) ) 76 return false; 77 76 78 $foundit = false; 77 79 if ( $markerdata ) { -
branches/2.8/wp-includes/post.php
r11467 r11579 1193 1193 clean_page_cache($child->ID); 1194 1194 1195 $wp_rewrite->flush_rules( );1195 $wp_rewrite->flush_rules(false); 1196 1196 } else { 1197 1197 clean_post_cache($postid); … … 3355 3355 if ( !defined('WP_IMPORTING') ) { 3356 3356 global $wp_rewrite; 3357 $wp_rewrite->flush_rules( );3357 $wp_rewrite->flush_rules(false); 3358 3358 } 3359 3359 } else { -
branches/2.8/wp-includes/rewrite.php
r11450 r11579 1823 1823 * @since 2.0.1 1824 1824 * @access public 1825 */ 1826 function flush_rules() { 1825 * @param $hard bool Whether to update .htaccess (hard flush) or just update rewrite_rules transient (soft flush). Default is true (hard). 1826 */ 1827 function flush_rules($hard = true) { 1827 1828 delete_transient('rewrite_rules'); 1828 1829 $this->wp_rewrite_rules(); 1829 if ( function_exists('save_mod_rewrite_rules') )1830 if ( $hard && function_exists('save_mod_rewrite_rules') ) 1830 1831 save_mod_rewrite_rules(); 1831 if ( function_exists('iis7_save_url_rewrite_rules') )1832 if ( $hard && function_exists('iis7_save_url_rewrite_rules') ) 1832 1833 iis7_save_url_rewrite_rules(); 1833 1834 }
Note: See TracChangeset
for help on using the changeset viewer.