[buddypress-trac] [BuddyPress Trac] #6649: Compatibility with `WP_Hook`

buddypress-trac noreply at wordpress.org
Thu Oct 15 02:27:17 UTC 2015

#6649: Compatibility with `WP_Hook`
 Reporter:  boonebgorges                         |       Owner:
     Type:  defect (bug)                         |  boonebgorges
 Priority:  normal                               |      Status:  closed
Component:  API                                  |   Milestone:  2.4
 Severity:  normal                               |     Version:
 Keywords:  has-patch dev-feedback needs-        |  Resolution:  fixed
  testing                                        |
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


 In [changeset:"10279"]:
 #!CommitTicketReference repository="" revision="10279"
 Support for `WP_Hook` in `bp_get_template_stack()`.

 The proposed `WP_Hook` #WP17817 breaks backward compatibility for plugins
 attempt to manipulate `$wp_filter` in certain ways. For BuddyPress, it
 that we cannot directly modify the callbacks that are currently registered
 an array at `$wp_filter[ $tag ]`, in `bp_get_template_stack()`. Instead,
 `WP_Hook` is not available, we assign the callbacks to a variable
 `WP_Hook`'s `ArrayAccess`) and manipulate the variable.

 Props jbrinley.
 Fixes #6649.

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6649#comment:4>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list