Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/14/2014 09:11:40 AM (11 years ago)
Author:
r-a-y
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-screens.php

    r7720 r7736  
    10371037            'post_type'      => 'bp_group',
    10381038            'post_status'    => 'publish',
    1039             'is_archive'     => true,
     1039            'is_page'        => true,
    10401040            'comment_status' => 'closed'
    10411041        ) );
     
    10981098            'post_type'      => 'bp_group',
    10991099            'post_status'    => 'publish',
    1100             'is_archive'     => true,
     1100            'is_page'        => true,
    11011101            'comment_status' => 'closed'
    11021102        ) );
     
    11581158            'post_type'      => 'bp_group',
    11591159            'post_status'    => 'publish',
    1160             'is_archive'     => true,
     1160            'is_page'        => true,
    11611161            'comment_status' => 'closed'
    11621162        ) );
Note: See TracChangeset for help on using the changeset viewer.