@@ 390-407 (lines=18) @@ | ||
387 | * @return bool |
|
388 | * @since 4.3.2 |
|
389 | */ |
|
390 | public static function sync_idc_optin() { |
|
391 | if ( Constants::is_defined( 'JETPACK_SYNC_IDC_OPTIN' ) ) { |
|
392 | $default = Constants::get_constant( 'JETPACK_SYNC_IDC_OPTIN' ); |
|
393 | } else { |
|
394 | $default = ! Constants::is_defined( 'SUNRISE' ) && ! is_multisite(); |
|
395 | } |
|
396 | ||
397 | /** |
|
398 | * Allows sites to opt in for IDC mitigation which blocks the site from syncing to WordPress.com when the home |
|
399 | * URL or site URL do not match what WordPress.com expects. The default value is either true, or the value of |
|
400 | * JETPACK_SYNC_IDC_OPTIN constant if set. |
|
401 | * |
|
402 | * @param bool $default Whether the site is opted in to IDC mitigation. |
|
403 | * |
|
404 | * @since 4.3.2 |
|
405 | */ |
|
406 | return (bool) apply_filters( 'jetpack_sync_idc_optin', $default ); |
|
407 | } |
|
408 | ||
409 | /** |
|
410 | * Does the current admin page have help tabs? |
@@ 6331-6348 (lines=18) @@ | ||
6328 | * @since 4.3.2 |
|
6329 | * @return bool |
|
6330 | */ |
|
6331 | public static function sync_idc_optin() { |
|
6332 | if ( Constants::is_defined( 'JETPACK_SYNC_IDC_OPTIN' ) ) { |
|
6333 | $default = Constants::get_constant( 'JETPACK_SYNC_IDC_OPTIN' ); |
|
6334 | } else { |
|
6335 | $default = ! Constants::is_defined( 'SUNRISE' ) && ! is_multisite(); |
|
6336 | } |
|
6337 | ||
6338 | /** |
|
6339 | * Allows sites to opt in for IDC mitigation which blocks the site from syncing to WordPress.com when the home |
|
6340 | * URL or site URL do not match what WordPress.com expects. The default value is either true, or the value of |
|
6341 | * JETPACK_SYNC_IDC_OPTIN constant if set. |
|
6342 | * |
|
6343 | * @since 4.3.2 |
|
6344 | * |
|
6345 | * @param bool $default Whether the site is opted in to IDC mitigation. |
|
6346 | */ |
|
6347 | return (bool) apply_filters( 'jetpack_sync_idc_optin', $default ); |
|
6348 | } |
|
6349 | ||
6350 | /** |
|
6351 | * Maybe Use a .min.css stylesheet, maybe not. |