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