Changeset 9837 for trunk/src/bp-blogs/bp-blogs-loader.php
- Timestamp:
- 05/04/2015 07:31:24 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-blogs/bp-blogs-loader.php
r9819 r9837 86 86 87 87 /** 88 * Filters the post types to track for the Blog component.88 * Filters the post types to track for the Blogs component. 89 89 * 90 90 * @since BuddyPress (1.5.0) 91 * @deprecated BuddyPress (2.3.0) 91 92 * 92 93 * @param array $value Array of post types to track. … … 298 299 * @see bp_activity_get_post_type_tracking_args() for information on parameters. 299 300 */ 300 public function post_tracking_args( $params = array(), $post_type = 0 ) { 301 if ( 'post' != $post_type ) { 301 public function post_tracking_args( $params = null, $post_type = 0 ) { 302 /** 303 * Filters the post types to track for the Blogs component. 304 * 305 * @since BuddyPress (1.5.0) 306 * @deprecated BuddyPress (2.3.0) 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 }
Note: See TracChangeset
for help on using the changeset viewer.