diff --git src/bp-blogs/bp-blogs-loader.php src/bp-blogs/bp-blogs-loader.php
index 36c2799..56123f4 100644
|
|
class BP_Blogs_Component extends BP_Component { |
88 | 88 | * Filters the post types to track for the Blog component. |
89 | 89 | * |
90 | 90 | * @since BuddyPress (1.5.0) |
| 91 | * @deprecated BuddyPress (2.2.2) |
91 | 92 | * |
92 | 93 | * @param array $value Array of post types to track. |
93 | 94 | */ |
… |
… |
class BP_Blogs_Component extends BP_Component { |
298 | 299 | * @see bp_activity_get_post_type_tracking_args() for information on parameters. |
299 | 300 | */ |
300 | 301 | public function post_tracking_args( $params = array(), $post_type = 0 ) { |
301 | | if ( 'post' != $post_type ) { |
| 302 | /** |
| 303 | * Make sure plugins still using 'bp_blogs_record_comment_post_types' |
| 304 | * to track comments about their post types will generate : |
| 305 | * - new_blog_post activities for the published items |
| 306 | * - new_blog_comment activities for the comments |
| 307 | * See https://buddypress.trac.wordpress.org/ticket/6306 |
| 308 | */ |
| 309 | $post_types = apply_filters( 'bp_blogs_record_comment_post_types', array( 'post' ) ); |
| 310 | $post_types_array = array_flip( $post_types ); |
| 311 | |
| 312 | if ( ! isset( $post_types_array[ $post_type ] ) ) { |
302 | 313 | return $params; |
303 | 314 | } |
304 | 315 | |