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

    r7438 r7735  
    372372            'post_type'      => 'bp_members',
    373373            'post_status'    => 'publish',
    374             'is_archive'     => true,
     374            'is_page'        => true,
    375375            'comment_status' => 'closed'
    376376        ) );
     
    432432            'post_type'      => 'bp_members',
    433433            'post_status'    => 'publish',
    434             'is_archive'     => true,
     434            'is_page'        => true,
    435435            'comment_status' => 'closed'
    436436        ) );
     
    548548            'post_type'      => $post_type,
    549549            'post_status'    => 'publish',
    550             'is_archive'     => true,
     550            'is_page'        => true,
    551551            'comment_status' => 'closed'
    552552        ) );
Note: See TracChangeset for help on using the changeset viewer.