Images getting stripped of url by apply_filters function (1 post)

  1. lleemon
    Posted 3 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic