Edit File by line
/home/zeestwma/richards.../wp-conte.../plugins/jetpack/modules/shortcod...
File: cartodb.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Carto (formerly CartoDB)
[2] Fix | Delete
*
[3] Fix | Delete
* Example URL: http://osm2.carto.com/viz/08aef918-94da-11e4-ad83-0e0c41326911/public_map
[4] Fix | Delete
*
[5] Fix | Delete
* possible patterns:
[6] Fix | Delete
* [username].carto.com/viz/[map-id]/public_map
[7] Fix | Delete
* [username].carto.com/viz/[map-id]/embed_map
[8] Fix | Delete
* [username].carto.com/viz/[map-id]/map
[9] Fix | Delete
* [organization].carto.com/u/[username]/viz/[map-id]/public_map
[10] Fix | Delete
* [organization].carto.com/u/[username]/viz/[map-id]/embed_map
[11] Fix | Delete
* [organization].carto.com/u/[username]/viz/[map-id]/map
[12] Fix | Delete
*
[13] Fix | Delete
* On July 8th, 2016 CartoDB changed its primary domain from cartodb.com to carto.com
[14] Fix | Delete
* So this shortcode still supports the cartodb.com domain for oembeds.
[15] Fix | Delete
*
[16] Fix | Delete
* @package automattic/jetpack
[17] Fix | Delete
*/
[18] Fix | Delete
[19] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[20] Fix | Delete
exit( 0 );
[21] Fix | Delete
}
[22] Fix | Delete
[23] Fix | Delete
wp_oembed_add_provider( '#https?://(?:www\.)?[^/^\.]+\.carto(db)?\.com/\S+#i', 'https://services.carto.com/oembed', true );
[24] Fix | Delete
[25] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function