Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/14/2014 09:06:54 AM (10 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-blogs/bp-blogs-screens.php

    r7555 r7735  
    157157            'post_type'      => 'bp_blogs',
    158158            'post_status'    => 'publish',
    159             'is_archive'     => true,
     159            'is_page'        => true,
    160160            'comment_status' => 'closed'
    161161        ) );
     
    220220            'post_type'      => 'bp_group',
    221221            'post_status'    => 'publish',
    222             'is_archive'     => true,
     222            'is_page'        => true,
    223223            'comment_status' => 'closed'
    224224        ) );
Note: See TracChangeset for help on using the changeset viewer.