Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/17/2015 08:47:19 PM (8 years ago)
Author:
imath
Message:

Fix a typo in the bp_activity_set_post_type_tracking_args() function

Add a unit test to check activity tracking arguments are added the same way to the post type when setting them within register_post_type() or using the bp_activity_set_post_type_tracking_args()

Props danbrellis

Fixes #6777

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-functions.php

    r10375 r10412  
    423423        if ( ! empty( $args[ $label_type ] ) ) {
    424424            $wp_post_types[ $post_type ]->labels->{$label_type} = $args[ $label_type ];
    425             unset( $args[ $post_type ] );
     425            unset( $args[ $label_type ] );
    426426        }
    427427    }
Note: See TracChangeset for help on using the changeset viewer.