[buddypress-trac] [BuddyPress Trac] #5301: Theme compat: Reset post arguments should not set 'is_archive' to true

buddypress-trac noreply at wordpress.org
Tue Jan 14 09:11:41 UTC 2014


#5301: Theme compat: Reset post arguments should not set 'is_archive' to true
--------------------------+---------------------
 Reporter:  michaello13   |       Owner:  r-a-y
     Type:  defect (bug)  |      Status:  closed
 Priority:  highest       |   Milestone:  1.9.2
Component:  Core          |     Version:  1.7
 Severity:  normal        |  Resolution:  fixed
 Keywords:  commit        |
--------------------------+---------------------

Comment (by r-a-y):

 In [changeset:"7736"]:
 {{{
 #!CommitTicketReference repository="" revision="7736"
 Theme compat: When resetting post, set 'is_page' to true.

 Previously, when resetting the post, 'is_archive' was set to true.

 As a consequence, certain themes with some form of conditional
 template logic (like Atahualpa and Attitude) were loading their
 archive template because of the 'is_archive' flag.  This caused
 formatting display issues because the archive template historically
 uses the_excerpt() causing all formatting to be stripped out.

 This commit changes all reset post calls so the 'is_page' parameter is
 set to true.  This should correctly use the regular page template for
 theme compatibility for themes with conditional template logic.

 See #5301.
 }}}

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


More information about the buddypress-trac mailing list