Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/14/2014 09:06:54 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.

Fixes #5301. (1.9-branch)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.9/bp-forums/bp-forums-screens.php

    r7554 r7735  
    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.