Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Wrong URL from URLHelper::file_system_to_url

$
0
0

Replies: 0

In the file URLHelper.php there is a piece of code that should get the URL to an image:


public static function file_system_to_url( $fs ) {
    $relative_path = self::get_rel_path($fs);
    $home = site_url('/'.$relative_path);
    $home = apply_filters('timber/URLHelper/file_system_to_url', $home);

    return $home;
}

This function returns the site_url('/'.$relative_path);, but that is not always the same as where the content_url() is specified.

Using version: 1.8.3


Viewing all articles
Browse latest Browse all 59525

Trending Articles