Jetpack_Custom_CSS_Enhancements::preview_skip_stylesheet PHP Method

preview_skip_stylesheet() public static method

Runs on safecss_skip_stylesheet filter.
public static preview_skip_stylesheet ( boolean $skip_value ) : null | boolean
$skip_value boolean Should the stylesheet be skipped.
return null | boolean
    public static function preview_skip_stylesheet($skip_value)
    {
        global $wp_customize;
        if (!is_customize_preview()) {
            return $skip_value;
        }
        $setting = $wp_customize->get_setting('jetpack_custom_css[replace]');
        if (!$setting) {
            return $skip_value;
        }
        $customized_replace = $setting->post_value();
        if (null !== $customized_replace) {
            return $customized_replace;
        }
        return $skip_value;
    }