| @@ 282-285 (lines=4) @@ | ||
| 279 | $image = array(); | |
| 280 | 				foreach ( (array) $post_images as $post_image ) { | |
| 281 | $image['src'] = $post_image['src']; | |
| 282 | 					if ( isset( $post_image['src_width'], $post_image['src_height'] ) ) { | |
| 283 | $image['width'] = $post_image['src_width']; | |
| 284 | $image['height'] = $post_image['src_height']; | |
| 285 | } | |
| 286 | } | |
| 287 | } | |
| 288 | } | |
| @@ 1173-1176 (lines=4) @@ | ||
| 1170 | ||
| 1171 | 		if ( in_array( $ext, array( 'jpg', 'jpeg', 'png', 'gif' ) ) ) { | |
| 1172 | $metadata = wp_get_attachment_metadata( $media_item->ID ); | |
| 1173 | 			if ( isset( $metadata['height'], $metadata['width'] ) ) { | |
| 1174 | $response['height'] = $metadata['height']; | |
| 1175 | $response['width'] = $metadata['width']; | |
| 1176 | } | |
| 1177 | ||
| 1178 | 			if ( isset( $metadata['sizes'] ) ) { | |
| 1179 | /** | |
| @@ 1210-1213 (lines=4) @@ | ||
| 1207 | ||
| 1208 | 		if ( in_array( $ext, array( 'ogv', 'mp4', 'mov', 'wmv', 'avi', 'mpg', '3gp', '3g2', 'm4v' ) ) ) { | |
| 1209 | $metadata = wp_get_attachment_metadata( $media_item->ID ); | |
| 1210 | 			if ( isset( $metadata['height'], $metadata['width'] ) ) { | |
| 1211 | $response['height'] = $metadata['height']; | |
| 1212 | $response['width'] = $metadata['width']; | |
| 1213 | } | |
| 1214 | ||
| 1215 | 			if ( isset( $metadata['length'] ) ) { | |
| 1216 | $response['length'] = $metadata['length']; | |