[buddypress-trac] [BuddyPress Trac] #5418: Theme compatibility - Post type problems

buddypress-trac noreply at wordpress.org
Wed Jul 23 19:42:15 UTC 2014


#5418: Theme compatibility - Post type problems
------------------------------+---------------------
 Reporter:  chochal           |       Owner:  r-a-y
     Type:  defect (bug)      |      Status:  closed
 Priority:  high              |   Milestone:  2.1
Component:  Theme             |     Version:  1.7
 Severity:  major             |  Resolution:  fixed
 Keywords:  has-patch commit  |
------------------------------+---------------------
Changes (by r-a-y):

 * owner:   => r-a-y
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"8682"]:
 {{{
 #!CommitTicketReference repository="" revision="8682"
 Theme compatibility: Fix issues with themes using post type conditionals.

 Previously, when BP resets a post for theme compatibility, we set the
 'post_type' to a post type that does not exist (eg. 'bp_activity').  For
 themes doing conditional template loading based on the post type, BP's
 theme compatibility would not kick in due to the non-existent post type.

 This commit replaces all 'post_type' values in
 bp_theme_compat_reset_post()
 to 'page' to address this problem.

 For backward compatibility, this commit also modifies the post class to
 emulate the older post classes prior to this commit resulting from the
 'page' post type change.

 Fixes #5418.
 }}}

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


More information about the buddypress-trac mailing list