Enclose the code in <code></code> tags.
<pre>:-)</pre> will work.
I ran in to this as well and finally tracked it down today. Commenting out the flush_rules calls will work but it will break your ability to create permalinks for new pages.
Problem seems to be a missing function in /wp-includes/classes.php.
To fix it look for…
$rules = apply_filters('rewrite_rules', $rules); // Deprecated
return $rules;
}
around line 1417, below it add…
function flush_rules() {
generate_page_rewrite_rules();
delete_option('rewrite_rules');
$this->wp_rewrite_rules();
if ( function_exists('save_mod_rewrite_rules') )
save_mod_rewrite_rules();
}
What and where is easier seen here http://redalt.com/xref/trunk/nav.htm?wp-includes/classes.php.source.htm#l1417