Opened 11 years ago
Closed 11 years ago
#5381 closed defect (bug) (fixed)
Use of wp_nav_menu_disabled_check() makes BP 1.9. non compatible to WP < 3.6.
Reported by: | lenasterg | Owned by: | boonebgorges |
---|---|---|---|
Milestone: | 2.0 | Priority: | normal |
Severity: | normal | Version: | 1.9.2 |
Component: | Core | Keywords: | |
Cc: |
Description
Hi.
In the bp-core/admin/bp-core-functions.php line 748 the use of wp_nav_menu_disabled_check() which is introduced in WP at version 3.6, breaks the 'Appearance->Menu" page if it used in an WP <3.6.
I think either
- "Requires at least: 3.5" should be changed
or
- if it doesn't break much of a functionality to add a function_exists() check on bp-core/admin/bp-core-functions.php line 744.
<?php if (function_exists(wp_nav_menu_disabled_check)) { ?> <p class="button-controls"> <span class="add-to-menu"> <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' ); ?>" name="add-custom-menu-item" id="submit-buddypress-menu" /> <span class="spinner"></span> </span> </p> <?php } ?>
Change History (2)
Note: See
TracTickets for help on using
tickets.
In 7827: