Skip to:
Content

BuddyPress.org

Changeset 12044


Ignore:
Timestamp:
05/03/2018 03:24:08 PM (18 months ago)
Author:
boonebgorges
Message:

Nouveau: Ensure item nav classes are properly calculated in Customizer.

The strict === check was always failing because bp_nouveau_get_temporary_setting()
doesn't know when it should return an integer.

Fixes #7799.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/includes/template-tags.php

    r12039 r12044  
    15361536        $customizer_option = ( bp_is_user() )? 'user_nav_display' : 'group_nav_display';
    15371537
    1538         $layout_prefs = bp_nouveau_get_temporary_setting( $customizer_option, bp_nouveau_get_appearance_settings( $customizer_option ) );
     1538        $layout_prefs = (int) bp_nouveau_get_temporary_setting( $customizer_option, bp_nouveau_get_appearance_settings( $customizer_option ) );
    15391539
    15401540        // Set the global for a later use - this is moved from the `bp_nouveau_get_container_classes()
Note: See TracChangeset for help on using the changeset viewer.