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-forums/bp-forums-screens.php

    r7554 r7736  
    219219            'post_type'      => 'bp_forum',
    220220            'post_status'    => 'publish',
    221             'is_archive'     => true,
     221            'is_page'        => true,
    222222            'comment_status' => 'closed'
    223223        ) );
Note: See TracChangeset for help on using the changeset viewer.