Jetpack::intercept_plugin_error_scrape PHP Method

intercept_plugin_error_scrape() public method

public intercept_plugin_error_scrape ( $action, $result )
    function intercept_plugin_error_scrape($action, $result)
    {
        if (!$result) {
            return;
        }
        foreach ($this->plugins_to_deactivate as $deactivate_me) {
            if ("plugin-activation-error_{$deactivate_me[0]}" == $action) {
                Jetpack::bail_on_activation(sprintf(__('Jetpack contains the most recent version of the old “%1$s” plugin.', 'jetpack'), $deactivate_me[1]), false);
            }
        }
    }
Jetpack