modules/publicize/publicize.php 1 location
|
@@ 1238-1242 (lines=5) @@
|
1235 |
|
|
1236 |
|
function publicize_calypso_url() { |
1237 |
|
$calypso_sharing_url = 'https://wordpress.com/sharing/'; |
1238 |
|
if ( class_exists( 'Jetpack' ) && method_exists( 'Jetpack', 'build_raw_urls' ) ) { |
1239 |
|
$site_suffix = Jetpack::build_raw_urls( home_url() ); |
1240 |
|
} elseif ( class_exists( 'WPCOM_Masterbar' ) && method_exists( 'WPCOM_Masterbar', 'get_calypso_site_slug' ) ) { |
1241 |
|
$site_suffix = WPCOM_Masterbar::get_calypso_site_slug( get_current_blog_id() ); |
1242 |
|
} |
1243 |
|
|
1244 |
|
if ( $site_suffix ) { |
1245 |
|
return $calypso_sharing_url . $site_suffix; |
class.jetpack-gutenberg.php 1 location
|
@@ 552-558 (lines=7) @@
|
549 |
|
? filemtime( JETPACK__PLUGIN_DIR . $blocks_dir . 'editor.js' ) |
550 |
|
: JETPACK__VERSION; |
551 |
|
|
552 |
|
if ( method_exists( 'Jetpack', 'build_raw_urls' ) ) { |
553 |
|
$site_fragment = Jetpack::build_raw_urls( home_url() ); |
554 |
|
} elseif ( class_exists( 'WPCOM_Masterbar' ) && method_exists( 'WPCOM_Masterbar', 'get_calypso_site_slug' ) ) { |
555 |
|
$site_fragment = WPCOM_Masterbar::get_calypso_site_slug( get_current_blog_id() ); |
556 |
|
} else { |
557 |
|
$site_fragment = ''; |
558 |
|
} |
559 |
|
|
560 |
|
wp_enqueue_script( |
561 |
|
'jetpack-blocks-editor', |
modules/calypsoify/class.jetpack-calypsoify.php 1 location
|
@@ 311-315 (lines=5) @@
|
308 |
|
} |
309 |
|
|
310 |
|
function get_site_suffix() { |
311 |
|
if ( class_exists( 'Jetpack' ) && method_exists( 'Jetpack', 'build_raw_urls' ) ) { |
312 |
|
$site_suffix = Jetpack::build_raw_urls( home_url() ); |
313 |
|
} elseif ( class_exists( 'WPCOM_Masterbar' ) && method_exists( 'WPCOM_Masterbar', 'get_calypso_site_slug' ) ) { |
314 |
|
$site_suffix = WPCOM_Masterbar::get_calypso_site_slug( get_current_blog_id() ); |
315 |
|
} |
316 |
|
|
317 |
|
if ( $site_suffix ) { |
318 |
|
return "/${site_suffix}"; |