Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/08/2015 01:49:04 AM (9 years ago)
Author:
r-a-y
Message:

Add back 'page' and type-page CSS classes on BuddyPress pages.

This fixes issues for the twentysixteen theme not displaying at the
proper width.

We should keep an eye on this to see if other themes are affected by this
change.

Props hnla.

See #6648.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-template.php

    r10184 r10209  
    30863086    foreach ( $bp_classes as $bp_class ) {
    30873087        $bp_classes[] = "type-{$bp_class}";
    3088     }
    3089 
    3090     // removes the 'page' and 'type-page' post classes
    3091     // we need to remove these classes since they did not exist before we switched
    3092     // theme compat to use the 'page' post type
    3093     $page_key = array_search( 'page', $wp_classes );
    3094     if ( $page_key !== false ) {
    3095         unset( $wp_classes[$page_key] );
    3096     }
    3097 
    3098     $page_type_key = array_search( 'type-page', $wp_classes );
    3099     if ( $page_type_key !== false ) {
    3100         unset( $wp_classes[$page_type_key] );
    31013088    }
    31023089
Note: See TracChangeset for help on using the changeset viewer.