Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/13/2013 01:58:53 AM (11 years ago)
Author:
boonebgorges
Message:

Fix dynamic class names for nav_menu metabox

The dynamic setting of the tabs-panel-active class was a remnant of an
earlier, tabbed version of the nav_menu feature.

Fixes #5239

Props imath

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/admin/bp-core-functions.php

    r7552 r7567  
    709709        <p><?php _e( '<em>Logged-In</em> links are relative to the current user, and are not visible to visitors who are not logged in.', 'buddypress' ) ?></p>
    710710
    711         <div id="tabs-panel-posttype-<?php echo $post_type_name; ?>-loggedin" class="tabs-panel <?php
    712             echo ( 'loggedin' == $current_tab ? 'tabs-panel-active' : 'tabs-panel-inactive' );
    713         ?>">
     711        <div id="tabs-panel-posttype-<?php echo $post_type_name; ?>-loggedin" class="tabs-panel tabs-panel-active">
    714712            <ul id="buddypress-menu-checklist-loggedin" class="categorychecklist form-no-clear">
    715713                <?php echo walk_nav_menu_tree( array_map( 'wp_setup_nav_menu_item', $tabs['loggedin']['pages'] ), 0, (object) $args );?>
     
    720718        <p><?php _e( '<em>Logged-Out</em> links are not visible to users who are logged in.', 'buddypress' ) ?></p>
    721719
    722         <div id="tabs-panel-posttype-<?php echo $post_type_name; ?>-loggedout" class="tabs-panel <?php
    723         ?>">
     720        <div id="tabs-panel-posttype-<?php echo $post_type_name; ?>-loggedout" class="tabs-panel tabs-panel-active">
    724721            <ul id="buddypress-menu-checklist-loggedout" class="categorychecklist form-no-clear">
    725722                <?php echo walk_nav_menu_tree( array_map( 'wp_setup_nav_menu_item', $tabs['loggedout']['pages'] ), 0, (object) $args );?>
Note: See TracChangeset for help on using the changeset viewer.