Пример #1
0
}
if (!function_exists('wp_installing')) {
    /**
     * We need to define wp_installing in WordPress versions older than 4.4
     *
     * @return bool
     */
    function wp_installing()
    {
        return defined('WP_INSTALLING');
    }
}
if (!wp_installing() && ($spl_autoload_exists && $filter_exists)) {
    add_action('plugins_loaded', 'wpseo_init', 14);
    if (is_admin()) {
        Yoast_Notification_Center::initialize_conditions();
        if (defined('DOING_AJAX') && DOING_AJAX) {
            require_once WPSEO_PATH . 'admin/ajax.php';
            // Crawl Issue Manager AJAX hooks.
            new WPSEO_GSC_Ajax();
            // Plugin conflict ajax hooks.
            new Yoast_Plugin_Conflict_Ajax();
            if (filter_input(INPUT_POST, 'action') === 'inline-save') {
                add_action('plugins_loaded', 'wpseo_admin_init', 15);
            }
        } else {
            add_action('plugins_loaded', 'wpseo_admin_init', 15);
        }
    } else {
        add_action('plugins_loaded', 'wpseo_frontend_init', 15);
    }