Viewing 1 replies (of 1 total)
  • Thread Starter RobInjection

    (@robinjection)

    My buddy saw this and ended up writing a function for me for a temp. fix, but its weird that this even needs to be done

    function mi_srcset_photo_url_filter($url){
        $fixed_url = str_replace('/home/metali5/public_html/wp-content/uploads/', '', $url);
        return $fixed_url;
    }
    
    add_filter('jetpack_photon_pre_image_url','mi_srcset_photo_url_filter');
Viewing 1 replies (of 1 total)
  • The topic ‘wp_get_attachment_image_srcset breaking old images’ is closed to new replies.