Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/13/2012 08:46:17 PM (12 years ago)
Author:
johnjamesjacoby
Message:

WP Version Check:

  • Fixes missing notifications menu.
  • Fixes missing groups menu.
  • Correctly compares floats as numbers.
  • Fix non-yoda comparisons.
  • Fixes #4255 (1.5 branch)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.5/bp-core/bp-core-adminbar.php

    r5958 r6086  
    2121 */
    2222function bp_core_admin_bar_version_check() {
    23     if ( '3.2' == bp_get_major_wp_version() ) {
     23    if ( 3.2 == bp_get_major_wp_version() ) {
    2424        add_action( 'bp_setup_admin_bar', 'bp_admin_bar_root_site',       3 );
    2525        add_action( 'bp_setup_admin_bar', 'bp_admin_bar_comments_menu',   3 );
     
    4141function bp_admin_bar_remove_wp_menus() {
    4242
    43     if ( '3.2' == bp_get_major_wp_version() ) {
     43    if ( 3.2 == bp_get_major_wp_version() ) {
    4444        remove_action( 'admin_bar_menu', 'wp_admin_bar_my_account_menu', 10 );
    4545        remove_action( 'admin_bar_menu', 'wp_admin_bar_my_sites_menu', 20 );
Note: See TracChangeset for help on using the changeset viewer.