[buddypress-trac] [BuddyPress Trac] #6777: Typo in bp_activity_set_post_type_tracking_args()

buddypress-trac noreply at wordpress.org
Tue Dec 15 20:43:36 UTC 2015


#6777: Typo in bp_activity_set_post_type_tracking_args()
----------------------------------+-----------------------------
 Reporter:  danbrellis            |      Owner:
     Type:  defect (bug)          |     Status:  new
 Priority:  normal                |  Milestone:  Awaiting Review
Component:  Component - Activity  |    Version:
 Severity:  minor                 |   Keywords:  needs-patch
----------------------------------+-----------------------------
 The function bp_activity_set_post_type_tracking_args adds the post labels
 in a foreach loop, and then unsets each $arg that was passed to it.

 The function says
 {{{#!php
 unset( $args[ $post_type ] );
 }}}

 but since there is no $post_type key in the $args array, I think it should
 actually be:

 {{{#!php
 unset( $args[ $label_type ] );
 }}}

 Was just poking around in the code and noticed this so sorry if I'm off
 base here.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6777>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list