@@ 110-116 (lines=7) @@ | ||
107 | * @param WP_Admin_Bar $wp_admin_bar |
|
108 | */ |
|
109 | function wp_admin_bar_wp_menu( $wp_admin_bar ) { |
|
110 | if ( current_user_can( 'read' ) ) { |
|
111 | $about_url = self_admin_url( 'about.php' ); |
|
112 | } elseif ( is_multisite() ) { |
|
113 | $about_url = get_dashboard_url( get_current_user_id(), 'about.php' ); |
|
114 | } else { |
|
115 | $about_url = false; |
|
116 | } |
|
117 | ||
118 | $wp_logo_menu_args = array( |
|
119 | 'id' => 'wp-logo', |
|
@@ 207-213 (lines=7) @@ | ||
204 | if ( ! $user_id ) |
|
205 | return; |
|
206 | ||
207 | if ( current_user_can( 'read' ) ) { |
|
208 | $profile_url = get_edit_profile_url( $user_id ); |
|
209 | } elseif ( is_multisite() ) { |
|
210 | $profile_url = get_dashboard_url( $user_id, 'profile.php' ); |
|
211 | } else { |
|
212 | $profile_url = false; |
|
213 | } |
|
214 | ||
215 | $avatar = get_avatar( $user_id, 26 ); |
|
216 | /* translators: %s: current user's display name */ |
|
@@ 245-251 (lines=7) @@ | ||
242 | if ( ! $user_id ) |
|
243 | return; |
|
244 | ||
245 | if ( current_user_can( 'read' ) ) { |
|
246 | $profile_url = get_edit_profile_url( $user_id ); |
|
247 | } elseif ( is_multisite() ) { |
|
248 | $profile_url = get_dashboard_url( $user_id, 'profile.php' ); |
|
249 | } else { |
|
250 | $profile_url = false; |
|
251 | } |
|
252 | ||
253 | $wp_admin_bar->add_group( array( |
|
254 | 'parent' => 'my-account', |