Code Duplication    Length = 7-7 lines in 2 locations

wp-includes/admin-bar.php 2 locations

@@ 190-196 (lines=7) @@
187
	if ( ! $user_id )
188
		return;
189
190
	if ( current_user_can( 'read' ) ) {
191
		$profile_url = get_edit_profile_url( $user_id );
192
	} elseif ( is_multisite() ) {
193
		$profile_url = get_dashboard_url( $user_id, 'profile.php' );
194
	} else {
195
		$profile_url = false;
196
	}
197
198
	$avatar = get_avatar( $user_id, 26 );
199
	$howdy  = sprintf( __('Howdy, %1$s'), $current_user->display_name );
@@ 227-233 (lines=7) @@
224
	if ( ! $user_id )
225
		return;
226
227
	if ( current_user_can( 'read' ) ) {
228
		$profile_url = get_edit_profile_url( $user_id );
229
	} elseif ( is_multisite() ) {
230
		$profile_url = get_dashboard_url( $user_id, 'profile.php' );
231
	} else {
232
		$profile_url = false;
233
	}
234
235
	$wp_admin_bar->add_group( array(
236
		'parent' => 'my-account',