Code Duplication    Length = 4-9 lines in 2 locations

wp-admin/includes/image.php 2 locations

@@ 306-314 (lines=9) @@
303
			$iptc = iptcparse( $info['APP13'] );
304
305
			// Headline, "A brief synopsis of the caption."
306
			if ( ! empty( $iptc['2#105'][0] ) ) {
307
				$meta['title'] = trim( $iptc['2#105'][0] );
308
			/*
309
			 * Title, "Many use the Title field to store the filename of the image,
310
			 * though the field may be used in many ways."
311
			 */
312
			} elseif ( ! empty( $iptc['2#005'][0] ) ) {
313
				$meta['title'] = trim( $iptc['2#005'][0] );
314
			}
315
316
			if ( ! empty( $iptc['2#120'][0] ) ) { // description / legacy caption
317
				$caption = trim( $iptc['2#120'][0] );
@@ 331-334 (lines=4) @@
328
				$meta['caption'] = $caption;
329
			}
330
331
			if ( ! empty( $iptc['2#110'][0] ) ) // credit
332
				$meta['credit'] = trim( $iptc['2#110'][0] );
333
			elseif ( ! empty( $iptc['2#080'][0] ) ) // creator / legacy byline
334
				$meta['credit'] = trim( $iptc['2#080'][0] );
335
336
			if ( ! empty( $iptc['2#055'][0] ) && ! empty( $iptc['2#060'][0] ) ) // created date and time
337
				$meta['created_timestamp'] = strtotime( $iptc['2#055'][0] . ' ' . $iptc['2#060'][0] );