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
|
@@ 410-415 (lines=6) @@
|
407 |
|
$attachment_desc = wpautop( wptexturize( $attachment->post_content ) ); |
408 |
|
|
409 |
|
// Not yet providing geo-data, need to "fuzzify" for privacy |
410 |
|
if ( ! empty( $img_meta ) ) { |
411 |
|
foreach ( $img_meta as $k => $v ) { |
412 |
|
if ( 'latitude' == $k || 'longitude' == $k ) |
413 |
|
unset( $img_meta[$k] ); |
414 |
|
} |
415 |
|
} |
416 |
|
|
417 |
|
// See https://github.com/Automattic/jetpack/issues/2765 |
418 |
|
if ( isset( $img_meta['keywords'] ) ) { |