@@ -311,16 +311,16 @@ function generate_payload( $post, $post_id ) {
311
311
if ( has_post_thumbnail ( $ post ->ID ) ) {
312
312
$ image = wp_get_attachment_image_src ( get_post_thumbnail_id ( $ post ->ID ), 'full ' );
313
313
$ 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 );
318
- $ data ['images ' ]['full ' ]['url ' ] = $ post_image ;
319
- $ post_thumbnail = $ thumb [0 ];
320
- $ filename = basename ($ post_thumbnail );
321
- $ encfilename = urlencode ($ filename );
322
- $ post_thumbnail = str_replace ($ filename , $ encfilename , $ post_thumbnail );
323
- $ data ['images ' ]['thumb ' ]['url ' ] = $ post_thumbnail ;
314
+ $ post_image = $ image [0 ];
315
+ $ filename = basename ($ post_image );
316
+ $ encfilename = urlencode ($ filename );
317
+ $ post_image = str_replace ($ filename , $ encfilename ,$ post_image );
318
+ $ data ['images ' ]['full ' ]['url ' ] = $ post_image ;
319
+ $ post_thumbnail = $ thumb [0 ];
320
+ $ filename = basename ($ post_thumbnail );
321
+ $ encfilename = urlencode ($ filename );
322
+ $ post_thumbnail = str_replace ($ filename , $ encfilename , $ post_thumbnail );
323
+ $ data ['images ' ]['thumb ' ]['url ' ] = $ post_thumbnail ;
324
324
}
325
325
326
326
// Add any galleries from the post to the images.
0 commit comments