Loading functions.php +1 −1 Original line number Diff line number Diff line Loading @@ -44,7 +44,7 @@ function fscoli_embed_umap($regex_matches, $embed_attrs, $url, $raw_embed_attrs) $height = esc_attr($embed_attrs['height'].'px'); $url = esc_url($url); return <<<HTML <iframe src="$url" style="width: $width; height: $height"></iframe> <iframe src="$url" style="width: $width; height: $height" allow="fullscreen"></iframe> HTML; } wp_embed_register_handler('umap', '#^https://umap.openstreetmap.de/[a-z]{2}/map/.*#', 'fscoli_embed_umap'); Loading Loading
functions.php +1 −1 Original line number Diff line number Diff line Loading @@ -44,7 +44,7 @@ function fscoli_embed_umap($regex_matches, $embed_attrs, $url, $raw_embed_attrs) $height = esc_attr($embed_attrs['height'].'px'); $url = esc_url($url); return <<<HTML <iframe src="$url" style="width: $width; height: $height"></iframe> <iframe src="$url" style="width: $width; height: $height" allow="fullscreen"></iframe> HTML; } wp_embed_register_handler('umap', '#^https://umap.openstreetmap.de/[a-z]{2}/map/.*#', 'fscoli_embed_umap'); Loading