Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions classes/class-sailthru-content.php
Original file line number Diff line number Diff line change
Expand Up @@ -440,10 +440,15 @@ function generate_meta_tags() {
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' );
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'concierge-thumb' );

$post_image = $image[0];
$horizon_tags['sailthru.image.full'] = esc_attr( $post_image );
$post_thumbnail = $thumb[0];
$horizon_tags['sailthru.image.thumb'] = $post_thumbnail;
if ( ! empty( $image[0] ) ) {
$post_image = $image[0];
$horizon_tags['sailthru.image.full'] = $post_image;
}

if ( ! empty( $thumb[0] ) ) {
$post_thumbnail = $thumb[0];
$horizon_tags['sailthru.image.thumb'] = $post_thumbnail;
}
Comment on lines 440 to +451

Copilot AI Mar 11, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR title/description and linked issue focus on initializing $tags_checked/$cat_checked, but this PR also changes meta tag generation for featured images. Please update the PR description/test plan to cover this additional behavior change, or split it into a separate PR so the scope matches the issue being fixed.

Copilot uses AI. Check for mistakes.
}

// expiration date
Expand Down
3 changes: 3 additions & 0 deletions classes/class-sailthru-meta-box.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ public function render_metabox( $post ) {
// Retrieves the global content options.
$options = get_option( 'sailthru_content_settings' );

$tags_checked = false;
$cat_checked = false;

if ( isset( $options['sailthru_interest_tag_options'] ) && !empty( $options['sailthru_interest_tag_options'] ) ) {
$tags_checked = in_array( 'wordpress_tags', $options['sailthru_interest_tag_options'], true ) ? true : false;
$cat_checked = in_array( 'wordpress_categories', $options['sailthru_interest_tag_options'], true ) ? true : false;
Expand Down
Loading