[buddypress-trac] [BuddyPress Trac] #6230: BP 2.2 (and 2.2.1) feed is no longer protected by Wishlist Member

buddypress-trac noreply at wordpress.org
Thu Feb 19 17:45:09 UTC 2015


#6230: BP 2.2 (and 2.2.1)  feed is no longer protected by Wishlist Member
-------------------------------+------------------------------
 Reporter:  Pete Hudson        |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Appearance         |     Version:  2.2.1
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------

Comment (by mikelopez):

 Currently, WLM uses the following filters for protecting content:

 `taxonomy_template`, `page_template`, `single_template`,
 `category_template`, `tag_template`

 We could use `template_redirect` but I'm wondering if this is the one that
 should be fixed.

 Turns out BP creates a dummy post with ID=0 for the activity page. I don't
 understand why this is needed. The function `bp_theme_compat_reset_post`
 says:

 {{{
 This dummy data is necessary because theme compatibility essentially fakes
 WordPress into thinking that there is content where, in fact, there is
 none
 }}}

 when in fact there will '''always''' be content as BP requires it.

 I also think that there's also the chance for other plugins to be thrown
 off because of said dummy post.

 Thoughts?

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


More information about the buddypress-trac mailing list