Commit 3da06993 authored by Jakob Moser's avatar Jakob Moser
Browse files

Use heredoc for better syntax highlighting

At least in VSCode
parent 28a1c7a6
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -43,7 +43,9 @@ function fscoli_embed_umap($regex_matches, $embed_attrs, $url, $raw_embed_attrs)
    $width = esc_attr($embed_attrs['width'].'px');
    $height = esc_attr($embed_attrs['height'].'px');
    $url = esc_url($url);
    return "<iframe src='$url' style='width: $width; height: $height'></iframe>";
    return <<<HTML
        <iframe src="$url" style="width: $width; height: $height"></iframe>
    HTML;
}
wp_embed_register_handler('umap', '#^https://umap.openstreetmap.de/[a-z]{2}/map/.*#', 'fscoli_embed_umap');
?>