Skip to content

Commit

Permalink
Don't filter content since it caused way too many problems.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewryno committed Apr 24, 2012
1 parent 518c588 commit d41de6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wp-facebook-ogp.php
Expand Up @@ -38,8 +38,8 @@ function wpfbogp_namespace($output) {
function wpfbogp_find_images() { function wpfbogp_find_images() {
global $post, $posts; global $post, $posts;


// Grab filtered content (so all shorttags are fired) and match first image // Grab content and match first image
$content = apply_filters( 'the_content', $post->post_content ); $content = $post->post_content;
$output = preg_match_all( '/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $content, $matches ); $output = preg_match_all( '/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $content, $matches );


// Make sure there was an image that was found, otherwise return false // Make sure there was an image that was found, otherwise return false
Expand Down

0 comments on commit d41de6a

Please sign in to comment.