Images getting stripped of url by apply_filters function
I have a weird situation where some of my images are coming up without the domain (ie http:///wp-content/……)
I have tracked it down to the following:
wp_includes/media.php has a function image_downsize which calls wp_get_attachement_url which has the following line:
$url = apply_filters( 'wp_get_attachment_url', $url, $post->ID );
Here is the before it enters (output the values to see):
apply_filters(‘wp_get_attachment_url’, http://domain.com/wp-content/uploads/2011/09/How-to-Do-something.jpg, 6086);
The $url value after apply_filters is run is:
Any ideas why this is doing this?
- The topic ‘Images getting stripped of url by apply_filters function’ is closed to new replies.