modules/tiled-gallery/tiled-gallery/tiled-gallery-item.php 1 location
|
@@ 30-35 (lines=6) @@
|
| 27 |
|
public function fuzzy_image_meta() { |
| 28 |
|
$meta = wp_get_attachment_metadata( $this->image->ID ); |
| 29 |
|
$img_meta = ( ! empty( $meta['image_meta'] ) ) ? (array) $meta['image_meta'] : array(); |
| 30 |
|
if ( ! empty( $img_meta ) ) { |
| 31 |
|
foreach ( $img_meta as $k => $v ) { |
| 32 |
|
if ( 'latitude' == $k || 'longitude' == $k ) |
| 33 |
|
unset( $img_meta[$k] ); |
| 34 |
|
} |
| 35 |
|
} |
| 36 |
|
|
| 37 |
|
return $img_meta; |
| 38 |
|
} |
modules/carousel/jetpack-carousel.php 1 location
|
@@ 388-393 (lines=6) @@
|
| 385 |
|
$attachment_desc = wpautop( wptexturize( $attachment->post_content ) ); |
| 386 |
|
|
| 387 |
|
// Not yet providing geo-data, need to "fuzzify" for privacy |
| 388 |
|
if ( ! empty( $img_meta ) ) { |
| 389 |
|
foreach ( $img_meta as $k => $v ) { |
| 390 |
|
if ( 'latitude' == $k || 'longitude' == $k ) |
| 391 |
|
unset( $img_meta[$k] ); |
| 392 |
|
} |
| 393 |
|
} |
| 394 |
|
|
| 395 |
|
// See https://github.com/Automattic/jetpack/issues/2765 |
| 396 |
|
if ( isset( $img_meta['keywords'] ) ) { |