/** * gets the stylesheet for the font preview */ public function font_preview() { global $available_fonts; $url = wpv_get_font_url($_POST['face'], $_POST['weight']); if (!empty($url)) { echo $url; } exit; }
/** * gets the stylesheet for the font preview */ public function font_preview() { $url = wpv_get_font_url($_POST['face'], $_POST['weight']); if (!empty($url)) { echo $url; // xss ok } exit; }