projects/packages/post-images/src/class-post-images.php 1 location
|
@@ 216-221 (lines=6) @@
|
213 |
|
|
214 |
|
$permalink = get_permalink( $post_id ); |
215 |
|
|
216 |
|
foreach ( $post_images as $post_image ) { |
217 |
|
$current_image = self::get_attachment_data( $post_image->ID, $permalink, $width, $height ); |
218 |
|
if ( false !== $current_image ) { |
219 |
|
$images[] = $current_image; |
220 |
|
} |
221 |
|
} |
222 |
|
|
223 |
|
/* |
224 |
|
* We only want to pass back attached images that were actually inserted. |
projects/plugins/jetpack/class.jetpack-post-images.php 1 location
|
@@ 208-213 (lines=6) @@
|
205 |
|
|
206 |
|
$permalink = get_permalink( $post_id ); |
207 |
|
|
208 |
|
foreach ( $post_images as $post_image ) { |
209 |
|
$current_image = self::get_attachment_data( $post_image->ID, $permalink, $width, $height ); |
210 |
|
if ( false !== $current_image ) { |
211 |
|
$images[] = $current_image; |
212 |
|
} |
213 |
|
} |
214 |
|
|
215 |
|
/* |
216 |
|
* We only want to pass back attached images that were actually inserted. |