Code Duplication    Length = 4-4 lines in 2 locations

functions.opengraph.php 1 location

@@ 293-296 (lines=4) @@
290
			if ( $post_images && ! is_wp_error( $post_images ) ) {
291
				foreach ( (array) $post_images as $post_image ) {
292
					$image['src'] = $post_image['src'];
293
					if ( isset( $post_image['src_width'], $post_image['src_height'] ) ) {
294
						$image['width']  = $post_image['src_width'];
295
						$image['height'] = $post_image['src_height'];
296
					}
297
				}
298
			}
299
		}

3rd-party/class.jetpack-amp-support.php 1 location

@@ 178-181 (lines=4) @@
175
				$image['src'] => false,
176
			) );
177
178
			if ( false !== $dimensions[ $image['src'] ] ) {
179
				$image['src_width']  = $dimensions['width'];
180
				$image['src_height'] = $dimensions['height'];
181
			}
182
		}
183
184
		$metadata['image'] = array(