Reduce references to the $wp_rewrite global because it's no longer used or a wrapper function can be used instead. Fixes #14546.#14546.

git-svn-id: https://develop.svn.wordpress.org/trunk@20023 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jon Cave
2012-02-28 20:29:33 +00:00
parent 21630b2828
commit cafa8dab24
9 changed files with 21 additions and 30 deletions

View File

@@ -30,7 +30,7 @@ if ( isset($_GET['import']) && !defined('WP_LOAD_IMPORTERS') )
require_once(dirname(dirname(__FILE__)) . '/wp-load.php');
if ( get_option('db_upgraded') ) {
$wp_rewrite->flush_rules();
flush_rewrite_rules();
update_option( 'db_upgraded', false );
/**