Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/07/2014 02:45:48 PM (11 years ago)
Author:
boonebgorges
Message:

On Appearance > Menus, only call wp_nav_menu_disabled_check() if the function exists

It was introduced in WP 3.6.

Fixes #5381

Props lenasterg

File:
1 edited

Legend:

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

    r7720 r7827  
    746746        <p class="button-controls">
    747747            <span class="add-to-menu">
    748                 <input type="submit"<?php wp_nav_menu_disabled_check( $nav_menu_selected_id ); ?> class="button-secondary submit-add-to-menu right" value="<?php esc_attr_e( 'Add to Menu', 'buddypress' ); ?>" name="add-custom-menu-item" id="submit-buddypress-menu" />
     748                <input type="submit"<?php if ( function_exists( 'wp_nav_menu_disabled_check' ) ) : wp_nav_menu_disabled_check( $nav_menu_selected_id ); endif; ?> class="button-secondary submit-add-to-menu right" value="<?php esc_attr_e( 'Add to Menu', 'buddypress' ); ?>" name="add-custom-menu-item" id="submit-buddypress-menu" />
    749749                <span class="spinner"></span>
    750750            </span>
Note: See TracChangeset for help on using the changeset viewer.