$bp->group_admin_menu_id = 'group-admin';
|
|
|
50 | 50 | // Logged in user |
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 |
56 | 56 | $avatar = bp_core_fetch_avatar( array( |
… |
… |
|
125 | 125 | if ( !current_user_can( 'edit_users' ) || bp_is_my_profile() ) |
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 |
131 | 131 | $avatar = bp_core_fetch_avatar( array( |
… |
… |
|
145 | 145 | 'href' => bp_displayed_user_domain() |
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 |
151 | 151 | $bp->user_admin_menu_id = 'user-admin'; |
… |
… |
|
221 | 221 | $menu_title = __( 'Notifications', 'buddypress' ); |
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 |
227 | 227 | $wp_admin_bar->add_menu( array( |
… |
… |
|
230 | 230 | 'href' => bp_loggedin_user_domain() |
231 | 231 | ) ); |
232 | 232 | |
233 | | } elseif ( '3.3' == bp_get_major_wp_version() ) { |
234 | | No newline at end of file |
| 233 | } elseif ( 3.3 == bp_get_major_wp_version() ) { |
| 234 | No newline at end of file |
235 | 235 | |
236 | 236 | // Add the top-level Notifications button |
$wp_admin_bar->add_menu( array(
|
|
|
83 | 83 | |
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' |
89 | 89 | ); |
… |
… |
|
107 | 107 | |
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', |
113 | 113 | 'admin-head-callback' => 'bp_dtheme_admin_header_style' |