summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/3rd-party/bbpress.php')
-rw-r--r--plugins/jetpack/3rd-party/bbpress.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/jetpack/3rd-party/bbpress.php b/plugins/jetpack/3rd-party/bbpress.php
index 7c46f381..0af7e028 100644
--- a/plugins/jetpack/3rd-party/bbpress.php
+++ b/plugins/jetpack/3rd-party/bbpress.php
@@ -15,6 +15,18 @@ function jetpack_bbpress_compat() {
}
/**
+ * Enable Markdown support for bbpress post types.
+ *
+ * @author Brandon Kraft
+ * @since 6.0.0
+ */
+ if ( function_exists( 'bbp_get_topic_post_type' ) ) {
+ add_post_type_support( bbp_get_topic_post_type(), 'wpcom-markdown' );
+ add_post_type_support( bbp_get_reply_post_type(), 'wpcom-markdown' );
+ add_post_type_support( bbp_get_forum_post_type(), 'wpcom-markdown' );
+ }
+
+ /**
* Use Photon for all images in Topics and replies.
*
* @since 4.9.0