diff --git src/bp-blogs/bp-blogs-loader.php src/bp-blogs/bp-blogs-loader.php
index 36c2799..d247c71 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 | * Filters the post types to track for the Blog component. |
| 304 | * |
| 305 | * @since BuddyPress (1.5.0) |
| 306 | * @deprecated BuddyPress (2.2.2) |
| 307 | * |
| 308 | * Make sure plugins still using 'bp_blogs_record_post_post_types' |
| 309 | * to track their post types will generate new_blog_post activities |
| 310 | * See https://buddypress.trac.wordpress.org/ticket/6306 |
| 311 | * |
| 312 | * @param array $value Array of post types to track. |
| 313 | */ |
| 314 | $post_types = apply_filters( 'bp_blogs_record_post_post_types', array( 'post' ) ); |
| 315 | $post_types_array = array_flip( $post_types ); |
| 316 | |
| 317 | if ( ! isset( $post_types_array[ $post_type ] ) ) { |
302 | 318 | return $params; |
303 | 319 | } |
304 | 320 | |