Skip to content

Commit 98fd951

Browse files
[INT-650_EM_DASH_CHARACTER] spaces formatted issue
1 parent 286da3e commit 98fd951

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

classes/class-sailthru-content.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -311,17 +311,17 @@ function generate_payload( $post, $post_id ) {
311311
if ( has_post_thumbnail( $post->ID ) ) {
312312
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' );
313313
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'concierge-thumb' );
314-
$post_image = $image[0];
315-
$filename = basename($post_image);
316-
$encfilename = urlencode($filename);
317-
$post_image = str_replace($filename, $encfilename, $post_image);
314+
$post_image = $image[0];
315+
$filename = basename($post_image);
316+
$encfilename = urlencode($filename);
317+
$post_image = str_replace($filename, $encfilename,$post_image);
318318
$data['images']['full']['url'] = $post_image ;
319319
$post_thumbnail = $thumb[0];
320-
$filename = basename($post_thumbnail);
321-
$encfilename = urlencode($filename);
322-
$post_thumbnail = str_replace($filename, $encfilename, $post_thumbnail);
320+
$filename = basename($post_thumbnail);
321+
$encfilename = urlencode($filename);
322+
$post_thumbnail = str_replace($filename, $encfilename, $post_thumbnail);
323323
$data['images']['thumb']['url'] = $post_thumbnail;
324-
}
324+
}
325325

326326
// Add any galleries from the post to the images.
327327
$data['images']['galleries'] = get_post_galleries_images( $post );

0 commit comments

Comments
 (0)