| @@ 396-413 (lines=18) @@ | ||
| 393 | * @return bool |
|
| 394 | * @since 4.3.2 |
|
| 395 | */ |
|
| 396 | public static function sync_idc_optin() { |
|
| 397 | if ( Constants::is_defined( 'JETPACK_SYNC_IDC_OPTIN' ) ) { |
|
| 398 | $default = Constants::get_constant( 'JETPACK_SYNC_IDC_OPTIN' ); |
|
| 399 | } else { |
|
| 400 | $default = ! Constants::is_defined( 'SUNRISE' ) && ! is_multisite(); |
|
| 401 | } |
|
| 402 | ||
| 403 | /** |
|
| 404 | * Allows sites to opt in for IDC mitigation which blocks the site from syncing to WordPress.com when the home |
|
| 405 | * URL or site URL do not match what WordPress.com expects. The default value is either true, or the value of |
|
| 406 | * JETPACK_SYNC_IDC_OPTIN constant if set. |
|
| 407 | * |
|
| 408 | * @param bool $default Whether the site is opted in to IDC mitigation. |
|
| 409 | * |
|
| 410 | * @since 4.3.2 |
|
| 411 | */ |
|
| 412 | return (bool) apply_filters( 'jetpack_sync_idc_optin', $default ); |
|
| 413 | } |
|
| 414 | ||
| 415 | /** |
|
| 416 | * Does the current admin page have help tabs? |
|
| @@ 6388-6405 (lines=18) @@ | ||
| 6385 | * @since 4.3.2 |
|
| 6386 | * @return bool |
|
| 6387 | */ |
|
| 6388 | public static function sync_idc_optin() { |
|
| 6389 | if ( Constants::is_defined( 'JETPACK_SYNC_IDC_OPTIN' ) ) { |
|
| 6390 | $default = Constants::get_constant( 'JETPACK_SYNC_IDC_OPTIN' ); |
|
| 6391 | } else { |
|
| 6392 | $default = ! Constants::is_defined( 'SUNRISE' ) && ! is_multisite(); |
|
| 6393 | } |
|
| 6394 | ||
| 6395 | /** |
|
| 6396 | * Allows sites to opt in for IDC mitigation which blocks the site from syncing to WordPress.com when the home |
|
| 6397 | * URL or site URL do not match what WordPress.com expects. The default value is either true, or the value of |
|
| 6398 | * JETPACK_SYNC_IDC_OPTIN constant if set. |
|
| 6399 | * |
|
| 6400 | * @since 4.3.2 |
|
| 6401 | * |
|
| 6402 | * @param bool $default Whether the site is opted in to IDC mitigation. |
|
| 6403 | */ |
|
| 6404 | return (bool) apply_filters( 'jetpack_sync_idc_optin', $default ); |
|
| 6405 | } |
|
| 6406 | ||
| 6407 | /** |
|
| 6408 | * Maybe Use a .min.css stylesheet, maybe not. |
|