src)) { return array(); } $response = wp_remote_get( $value->src ); if (wp_remote_retrieve_response_code($response) !== 200) { return false; } if (! $assetContent = wp_remote_retrieve_body($response)) { return false; } } return $assetContent; } /** * "Simple Custom CSS" (better retrieval, especially for localhost and password-protected sites) * * @return string */ public static function getSimpleCustomCss() { $sccssOptions = get_option('sccss_settings'); $sccssRawContent = isset($sccssOptions['sccss-content']) ? $sccssOptions['sccss-content'] : ''; $cssContent = wp_kses($sccssRawContent, array('\'', '\"')); $cssContent = str_replace('>', '>', $cssContent); return trim($cssContent); } }