public function bbpress_edit($content = '', $type = '') { if ($this->is_Markdownable($type)) { $content = htmlspecialchars_decode($content); $content = wpmarkdown_html_to_markdown($content); $content = esc_attr($content); } return $content; }
/** * Returns the post_content * * Markdownify's the content if applicable */ public function post_content() { $content = $this->post->post_content; if (function_exists('wpmarkdown_html_to_markdown')) { $content = wpmarkdown_html_to_markdown($content); } else { if (class_exists('WPCom_Markdown')) { $wpcomMd = WPCom_Markdown::get_instance(); if ($wpcomMd->is_markdown($this->post->ID)) { $content = $this->post->post_content_filtered; } } } return $content; }
/** * Returns the post_content * * Markdownify's the content if applicable */ public function post_content() { $content = $this->post->post_content; if (function_exists('wpmarkdown_html_to_markdown')) { $content = wpmarkdown_html_to_markdown($content); } else { if (class_exists('WPCom_Markdown')) { if (WPCom_Markdown::get_instance()->is_markdown($this->post->ID)) { $content = $this->post->post_content_filtered; } } } return apply_filters('wpghs_content_export', $content, $this); }