Code Duplication    Length = 2-4 lines in 3 locations

wp-includes/author-template.php 1 location

@@ 426-429 (lines=4) @@
423
			$link .= '<a href="' . get_author_feed_link( $author->ID, $args['feed_type'] ) . '"';
424
425
			$alt = '';
426
			if ( ! empty( $args['feed'] ) ) {
427
				$alt = ' alt="' . esc_attr( $args['feed'] ) . '"';
428
				$name = $args['feed'];
429
			}
430
431
			$link .= '>';
432

wp-includes/class-wp-admin-bar.php 1 location

@@ 458-461 (lines=4) @@
455
		if ( $node->type != 'group' || empty( $node->children ) )
456
			return;
457
458
		if ( ! empty( $node->meta['class'] ) )
459
			$class = ' class="' . esc_attr( trim( $node->meta['class'] ) ) . '"';
460
		else
461
			$class = '';
462
463
		?><ul id="<?php echo esc_attr( 'wp-admin-bar-' . $node->id ); ?>"<?php echo $class; ?>><?php
464
			foreach ( $node->children as $item ) {

wp-includes/media.php 1 location

@@ 1541-1542 (lines=2) @@
1538
	if ( $atts['width'] < 1 || empty( $atts['caption'] ) )
1539
		return $content;
1540
1541
	if ( ! empty( $atts['id'] ) )
1542
		$atts['id'] = 'id="' . esc_attr( sanitize_html_class( $atts['id'] ) ) . '" ';
1543
1544
	$class = trim( 'wp-caption ' . $atts['align'] . ' ' . $atts['class'] );
1545