Changeset 6086
- Timestamp:
- 06/13/2012 08:46:17 PM (11 years ago)
- Location:
- branches/1.5
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.5/bp-core/bp-core-adminbar.php
r5958 r6086 21 21 */ 22 22 function bp_core_admin_bar_version_check() { 23 if ( '3.2'== bp_get_major_wp_version() ) {23 if ( 3.2 == bp_get_major_wp_version() ) { 24 24 add_action( 'bp_setup_admin_bar', 'bp_admin_bar_root_site', 3 ); 25 25 add_action( 'bp_setup_admin_bar', 'bp_admin_bar_comments_menu', 3 ); … … 41 41 function bp_admin_bar_remove_wp_menus() { 42 42 43 if ( '3.2'== bp_get_major_wp_version() ) {43 if ( 3.2 == bp_get_major_wp_version() ) { 44 44 remove_action( 'admin_bar_menu', 'wp_admin_bar_my_account_menu', 10 ); 45 45 remove_action( 'admin_bar_menu', 'wp_admin_bar_my_sites_menu', 20 ); -
branches/1.5/bp-groups/bp-groups-adminbar.php
r5958 r6086 50 50 return false; 51 51 52 if ( '3.2'== bp_get_major_wp_version() ) {52 if ( 3.2 == bp_get_major_wp_version() ) { 53 53 54 54 // Group avatar … … 72 72 ) ); 73 73 74 } elseif ( '3.3' == bp_get_major_wp_version() ) {74 } elseif ( 3.3 <= bp_get_major_wp_version() ) { 75 75 76 76 // Unique ID for the 'My Account' menu -
branches/1.5/bp-members/bp-members-adminbar.php
r5678 r6086 51 51 if ( is_user_logged_in() ) { 52 52 53 if ( '3.2'== bp_get_major_wp_version() ) {53 if ( 3.2 == bp_get_major_wp_version() ) { 54 54 55 55 // User avatar … … 126 126 return false; 127 127 128 if ( '3.2'== bp_get_major_wp_version() ) {128 if ( 3.2 == bp_get_major_wp_version() ) { 129 129 130 130 // User avatar … … 146 146 ) ); 147 147 148 } elseif ( '3.3' == bp_get_major_wp_version() ) {148 } elseif ( 3.3 <= bp_get_major_wp_version() ) { 149 149 150 150 // Unique ID for the 'My Account' menu … … 222 222 } 223 223 224 if ( '3.2'== bp_get_major_wp_version() ) {224 if ( 3.2 == bp_get_major_wp_version() ) { 225 225 226 226 // Add the top-level Notifications button … … 231 231 ) ); 232 232 233 } elseif ( '3.3'== bp_get_major_wp_version() ) {233 } elseif ( 3.3 == bp_get_major_wp_version() ) { 234 234 235 235 // Add the top-level Notifications button -
branches/1.5/bp-themes/bp-default/functions.php
r5979 r6086 84 84 // This theme allows users to set a custom background 85 85 // Backward-compatibility with WP < 3.4 will be removed in a future release 86 if ( bp_get_major_wp_version() >= 3.4) {86 if ( 3.4 <= bp_get_major_wp_version() ) { 87 87 $custom_background_args = array( 88 88 'wp-head-callback' => 'bp_dtheme_custom_background_style' … … 108 108 // Add a way for the custom header to be styled in the admin panel that controls custom headers. 109 109 // Backward-compatibility with WP < 3.4 will be removed in a future release 110 if ( bp_get_major_wp_version() >= 3.4) {110 if ( 3.4 <= bp_get_major_wp_version() ) { 111 111 $custom_header_args = array( 112 112 'wp-head-callback' => 'bp_dtheme_header_style',
Note: See TracChangeset
for help on using the changeset viewer.