This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
Omphaloskepsis/plugins/jetpack/modules/shortcodes/cartodb.php
2018-03-21 18:19:20 +00:00

18 lines
No EOL
603 B
PHP

<?php
/*
* CartoDB
*
* example URL: http://osm2.cartodb.com/viz/08aef918-94da-11e4-ad83-0e0c41326911/public_map
*
* possible patterns:
* [username].cartodb.com/viz/[map-id]/public_map
* [username].cartodb.com/viz/[map-id]/embed_map
* [username].cartodb.com/viz/[map-id]/map
* [organization].cartodb.com/u/[username]/viz/[map-id]/public_map
* [organization].cartodb.com/u/[username]/viz/[map-id]/embed_map
* [organization].cartodb.com/u/[username]/viz/[map-id]/map
*/
wp_oembed_add_provider( '#https?://(?:www\.)?[^/^\.]+\.cartodb\.com/\S+#i', 'https://services.cartodb.com/oembed', true );