Permalink
Browse files

Don't filter content since it caused way too many problems.

  • Loading branch information...
1 parent 518c588 commit d41de6aed48d922f5666eb25cd3097a90500b6a2 @andrewryno andrewryno committed Apr 24, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 wp-facebook-ogp.php
View
@@ -38,8 +38,8 @@ function wpfbogp_namespace($output) {
function wpfbogp_find_images() {
global $post, $posts;
- // Grab filtered content (so all shorttags are fired) and match first image
- $content = apply_filters( 'the_content', $post->post_content );
+ // Grab content and match first image
+ $content = $post->post_content;
$output = preg_match_all( '/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $content, $matches );
// Make sure there was an image that was found, otherwise return false

0 comments on commit d41de6a

Please sign in to comment.