_run_raw_shortcode($content); } /** * Process [raw] shortcodes generated after normal shortcodes * have been processed. */ public function run_raw_shortcode_again($content) { return $this->_run_raw_shortcode($content, true); } /** * Remove raw content to prevent formatting issues caused by * wpautop and wptexturize. * * A token id is placed where the raw content was, and the raw content * is inserted again after when regultar shortcode step is executed. */ public function raw_shortcode($attrs, $raw) { $id = uniqid(); $this->raw[$id] = $raw; return sprintf('[awpcp-raw-token id=%s]', $id); } /** * Replaces a raw token id with the content it represents. */ public function raw_token_shortcode($attrs) { extract(shortcode_atts(array('id' => 0), $attrs)); if (!$id || !isset($this->raw[$id])) return ''; return $this->raw[$id]; } }