Loading functions.php +3 −1 Original line number Diff line number Diff line Loading @@ -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'); ?> Loading
functions.php +3 −1 Original line number Diff line number Diff line Loading @@ -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'); ?>