Skip to content

Commit

Permalink
img array: feat, content, default
Browse files Browse the repository at this point in the history
  • Loading branch information
chuckreynolds committed Feb 10, 2015
1 parent c8c544e commit 13a2ad4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wp-facebook-ogp.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,11 @@ function wpfbogp_build_head() {

if ( is_array( $wpfbogp_images ) )
{
$wpfbogp_images[] = $wpfbogp_fallback_img; // Add to images array
$wpfbogp_images = array_reverse($wpfbogp_images);
$wpfbogp_images[] = $wpfbogp_fallback_img; // Add default img to image array
$wpfbogp_images; // order now is: feat img, content imgs, default-unchecked
}
else {
$wpfbogp_images = array( $wpfbogp_fallback_img ); // Create image array with default image as index 0
$wpfbogp_images = array( $wpfbogp_fallback_img ); // Replace image array with default image as index 0
}
}

Expand All @@ -228,7 +228,7 @@ function wpfbogp_build_head() {
}
} else {
// No images were outputted because they have no default image (at the very least)
echo "<!-- There is not an image here as you haven't set a default image in the plugin settings! -->\n";
echo "<!-- No featured or content images are found and no default image is set in the plugin settings! -->\n";
}

// do locale // make lower case cause facebook freaks out and shits parser mismatched metadata warning
Expand Down

0 comments on commit 13a2ad4

Please sign in to comment.