/**
 * Set the default settings.
 *
 * @deprecated 1.5.0
 * @deprecated use YMBESEO_Options::initialize()
 * @see        YMBESEO_Options::initialize()
 */
function YMBESEO_defaults()
{
    _deprecated_function(__FUNCTION__, 'WPSEO 1.5.0', 'YMBESEO_Options::initialize()');
    YMBESEO_Options::initialize();
}
Пример #2
0
/**
 * Runs on activation of the plugin.
 */
function _YMBESEO_activate()
{
    require_once YMBESEO_PATH . 'inc/ymbeseo-functions.php';
    YMBESEO_load_textdomain();
    // Make sure we have our translations available for the defaults.
    YMBESEO_Options::get_instance();
    if (!is_multisite()) {
        YMBESEO_Options::initialize();
    } else {
        YMBESEO_Options::maybe_set_multisite_defaults(true);
    }
    YMBESEO_Options::ensure_options_exist();
    add_action('shutdown', 'flush_rewrite_rules');
    YMBESEO_add_capabilities();
    // Clear cache so the changes are obvious.
    YMBESEO_Utils::clear_cache();
    do_action('YMBESEO_activate');
}
 /**
  * Class constructor
  *
  * @param boolean $replace
  */
 public function __construct($replace = false)
 {
     $this->replace = $replace;
     YMBESEO_Options::initialize();
 }