@@ 326-335 (lines=10) @@ | ||
323 | 'height' => $height, |
|
324 | ) |
|
325 | ); |
|
326 | if ( ! empty( $post_image ) && is_array( $post_image ) ) { |
|
327 | $image['src'] = $post_image['src']; |
|
328 | if ( isset( $post_image['src_width'], $post_image['src_height'] ) ) { |
|
329 | $image['width'] = $post_image['src_width']; |
|
330 | $image['height'] = $post_image['src_height']; |
|
331 | } |
|
332 | if ( ! empty( $post_image['alt_text'] ) ) { |
|
333 | $image['alt_text'] = $post_image['alt_text']; |
|
334 | } |
|
335 | } |
|
336 | } |
|
337 | } elseif ( is_author() ) { |
|
338 | $author = get_queried_object(); |
@@ 1334-1347 (lines=14) @@ | ||
1331 | } |
|
1332 | } |
|
1333 | ||
1334 | if ( ! empty( $img_url ) ) { |
|
1335 | if ( ! empty( $post_image['alt_text'] ) ) { |
|
1336 | $image_params['alt_text'] = $post_image['alt_text']; |
|
1337 | } else { |
|
1338 | $image_params['alt_text'] = ''; |
|
1339 | } |
|
1340 | $image_params['width'] = $thumbnail_size['width']; |
|
1341 | $image_params['height'] = $thumbnail_size['height']; |
|
1342 | $image_params['src'] = Jetpack_PostImages::fit_image_url( |
|
1343 | $img_url, |
|
1344 | $thumbnail_size['width'], |
|
1345 | $thumbnail_size['height'] |
|
1346 | ); |
|
1347 | } |
|
1348 | } |
|
1349 | ||
1350 | return $image_params; |