Code Duplication    Length = 4-4 lines in 2 locations

functions.opengraph.php 1 location

@@ 279-282 (lines=4) @@
276
			if ( $post_images && ! is_wp_error( $post_images ) ) {
277
				foreach ( (array) $post_images as $post_image ) {
278
					$image['src'] = $post_image['src'];
279
					if ( isset( $post_image['src_width'], $post_image['src_height'] ) ) {
280
						$image['width']  = $post_image['src_width'];
281
						$image['height'] = $post_image['src_height'];
282
					}
283
				}
284
			}
285
		}

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

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