Skip to:
Content

Changeset 7735


Ignore:
Timestamp:
01/14/2014 09:06:54 AM (4 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)

Location:
branches/1.9
Files:
5 edited

Legend:

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

    r7622 r7735  
    388388            'post_type'      => 'bp_activity',
    389389            'post_status'    => 'publish',
    390             'is_archive'     => true,
     390            'is_page'        => true,
    391391            'comment_status' => 'closed'
    392392        ) );
     
    441441            'post_type'      => 'bp_activity',
    442442            'post_status'    => 'publish',
    443             'is_archive'     => true,
     443            'is_page'        => true,
    444444            'comment_status' => 'closed'
    445445        ) );
  • 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        ) );
  • 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        ) );
  • branches/1.9/bp-groups/bp-groups-screens.php

    r7624 r7735  
    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        ) );
  • 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.