예제 #1
0
파일: liveblog.php 프로젝트: WaitButWhy/www
 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));
 }
예제 #2
0
 private function insert_entry($args = array())
 {
     $entry = WPCOM_Liveblog_Entry::insert($this->build_entry_args($args));
     return $entry;
 }