Thread Starter
rockuj
(@rockuj)
Chyba je v cestách na Windows v souboru CustomFields.php, konkrétně ve funkci path_to_url.
Zde je moje řešení problému:
public function path_to_url(string $path): string
{
$content_url = content_url();
if (is_ssl() && str_starts_with($content_url, 'http://')) {
$content_url = str_replace('http://', 'https://', $content_url);
}
$normalized_path = str_replace('\\', '/', $path);
$normalized_wp_content_dir = str_replace('\\', '/', \WP_CONTENT_DIR);
return str_replace($normalized_wp_content_dir, $content_url, $normalized_path);
}