Changeset 9649 for trunk/src/bp-activity/bp-activity-functions.php
- Timestamp:
- 03/26/2015 09:52:48 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-functions.php
r9621 r9649 409 409 function bp_activity_set_post_type_tracking_args( $post_type = '', $args = array() ) { 410 410 global $wp_post_types; 411 $bp = buddypress();412 411 413 412 if ( empty( $wp_post_types[ $post_type ] ) || ! post_type_supports( $post_type, 'buddypress-activity' ) || ! is_array( $args ) ) { … … 593 592 } 594 593 595 $bp = buddypress();596 594 $actions = bp_activity_get_actions(); 597 598 $retval = false; 595 $retval = false; 596 599 597 if ( isset( $actions->{$component_id}->{$key} ) ) { 600 598 $retval = $actions->{$component_id}->{$key}; … … 1789 1787 */ 1790 1788 function bp_activity_post_type_publish( $post_id = 0, $post = null, $user_id = 0 ) { 1791 $bp = buddypress();1792 1789 1793 1790 if ( ! is_a( $post, 'WP_Post' ) ) { … … 1925 1922 */ 1926 1923 function bp_activity_post_type_update( $post = null ) { 1927 $bp = buddypress();1928 1924 1929 1925 if ( ! is_a( $post, 'WP_Post' ) ) { … … 1995 1991 */ 1996 1992 function bp_activity_post_type_unpublish( $post_id = 0, $post = null ) { 1997 $bp = buddypress();1998 1993 1999 1994 if ( ! is_a( $post, 'WP_Post' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.