Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/13/2012 08:46:17 PM (14 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-members/bp-members-adminbar.php

    r5678 r6086  
    5151        if ( is_user_logged_in() ) {
    5252
    53                 if ( '3.2' == bp_get_major_wp_version() ) {
     53                if ( 3.2 == bp_get_major_wp_version() ) {
    5454
    5555                        // User avatar
    … …  
    126126                return false;
    127127
    128         if ( '3.2' == bp_get_major_wp_version() ) {
     128        if ( 3.2 == bp_get_major_wp_version() ) {
    129129
    130130                // User avatar
    … …  
    146146                ) );
    147147
    148         } elseif ( '3.3' == bp_get_major_wp_version() ) {
     148        } elseif ( 3.3 <= bp_get_major_wp_version() ) {
    149149               
    150150                // Unique ID for the 'My Account' menu
    … …  
    222222        }
    223223
    224         if ( '3.2' == bp_get_major_wp_version() ) {
     224        if ( 3.2 == bp_get_major_wp_version() ) {
    225225
    226226                // Add the top-level Notifications button
    … …  
    231231                ) );
    232232
    233         } elseif ( '3.3' == bp_get_major_wp_version() ) {
     233        } elseif ( 3.3 == bp_get_major_wp_version() ) {
    234234               
    235235                // Add the top-level Notifications button
Note: See TracChangeset for help on using the changeset viewer.