summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2018-04-10 22:00:23 -0400
committerAnthony G. Basile <blueness@gentoo.org>2018-04-10 22:00:23 -0400
commita9f67089ebcadba2c7392e91d77c1b32a5515c1a (patch)
tree46d486f0aabbaa08f2ed083e1e65cf05dfcecdb8 /plugins/jetpack/3rd-party/bbpress.php
parentUpdate wordpress-mobile-pack 3.3 (diff)
downloadblogs-gentoo-a9f67089ebcadba2c7392e91d77c1b32a5515c1a.tar.gz
blogs-gentoo-a9f67089ebcadba2c7392e91d77c1b32a5515c1a.tar.bz2
blogs-gentoo-a9f67089ebcadba2c7392e91d77c1b32a5515c1a.zip
Update jetpack 6.0
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