[buddypress-trac] [BuddyPress Trac] #5138: Audit & replace $bp global touches with wrapper functions & methods

buddypress-trac noreply at wordpress.org
Mon Jan 19 20:49:47 UTC 2015


#5138: Audit & replace $bp global touches with wrapper functions & methods
-----------------------------+------------------------------
 Reporter:  johnjamesjacoby  |       Owner:  johnjamesjacoby
     Type:  task             |      Status:  new
 Priority:  normal           |   Milestone:  Future Release
Component:  Rewrite Rules    |     Version:  1.0
 Severity:  normal           |  Resolution:
 Keywords:  needs-patch      |
-----------------------------+------------------------------

Comment (by johnjamesjacoby):

 In [changeset:"9377"]:
 {{{
 #!CommitTicketReference repository="" revision="9377"
 Harden `BP_Activity_Activity::rebuild_activity_comment_tree()` by using
 `intval()` on recursively returned values, and use `wp_list_pluck()` to
 avoid touching object `id` directly. Also remove `$bp` global touch. See
 #5138.
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5138#comment:12>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list