Code Duplication    Length = 3-3 lines in 2 locations

src/wp-admin/options-writing.php 1 location

@@ 87-89 (lines=3) @@
84
<td>
85
	<select name="default_post_format" id="default_post_format">
86
		<option value="0"><?php echo get_post_format_string( 'standard' ); ?></option>
87
<?php foreach ( $post_formats as $format_slug => $format_name ): ?>
88
		<option<?php selected( get_option( 'default_post_format' ), $format_slug ); ?> value="<?php echo esc_attr( $format_slug ); ?>"><?php echo esc_html( $format_name ); ?></option>
89
<?php endforeach; ?>
90
	</select>
91
</td>
92
</tr>

src/wp-content/themes/twentyfourteen/inc/widgets.php 1 location

@@ 284-286 (lines=3) @@
281
282
			<p><label for="<?php echo esc_attr( $this->get_field_id( 'format' ) ); ?>"><?php _e( 'Post format to show:', 'twentyfourteen' ); ?></label>
283
			<select id="<?php echo esc_attr( $this->get_field_id( 'format' ) ); ?>" class="widefat" name="<?php echo esc_attr( $this->get_field_name( 'format' ) ); ?>">
284
				<?php foreach ( $this->formats as $slug ) : ?>
285
				<option value="<?php echo esc_attr( $slug ); ?>"<?php selected( $format, $slug ); ?>><?php echo esc_html( get_post_format_string( $slug ) ); ?></option>
286
				<?php endforeach; ?>
287
			</select>
288
		<?php
289
	}