/** * Check whether the current user is allowed to access the configuration. * * @deprecated 1.5.0 * @deprecated use wpseo_do_upgrade() * @see wpseo_do_upgrade() * * @return boolean */ function maybe_upgrade() { _deprecated_function(__METHOD__, 'WPSEO 1.5.0', 'wpseo_do_upgrade'); wpseo_do_upgrade(); }
/** * On plugins_loaded: load the minimum amount of essential files for this plugin */ function wpseo_init() { require_once WPSEO_PATH . 'inc/wpseo-functions.php'; // Make sure our option and meta value validation routines and default values are always registered and available WPSEO_Options::get_instance(); WPSEO_Meta::init(); $option_wpseo = get_option('wpseo'); if (version_compare($option_wpseo['version'], WPSEO_VERSION, '<')) { wpseo_do_upgrade($option_wpseo['version']); } $options = WPSEO_Options::get_all(); if ($options['stripcategorybase'] === true) { $GLOBALS['wpseo_rewrite'] = new WPSEO_Rewrite(); } if ($options['enablexmlsitemap'] === true) { $GLOBALS['wpseo_sitemaps'] = new WPSEO_Sitemaps(); } if (!defined('DOING_AJAX') || !DOING_AJAX) { require_once WPSEO_PATH . 'inc/wpseo-non-ajax-functions.php'; } }