public static function ajax_preview_entry() { $entry_content = isset($_REQUEST['entry_content']) ? $_REQUEST['entry_content'] : ''; $entry_content = stripslashes(wp_filter_post_kses($entry_content)); $entry_content = WPCOM_Liveblog_Entry::render_content($entry_content); do_action('liveblog_preview_entry', $entry_content); self::json_return(array('html' => $entry_content)); }
private function insert_entry($args = array()) { $entry = WPCOM_Liveblog_Entry::insert($this->build_entry_args($args)); return $entry; }