| @@ -1579,8 +1579,21 @@ | ||
| 1579 | 1579 | return false; |
| 1580 | 1580 | } |
| 1581 | 1581 | |
| 1582 | 1582 | /** |
| 1583 | + * Whether the site is still on the pre-2026 feature gating. | |
| 1584 | + * | |
| 1585 | + * @return bool | |
| 1586 | + */ | |
| 1587 | + public function is_legacy_gating_site() { | |
| 1588 | + if ( ! method_exists( 'WPCOM_Features', 'is_legacy_gating_site' ) ) { | |
| 1589 | + return false; | |
| 1590 | + } | |
| 1591 | + | |
| 1592 | + return (bool) WPCOM_Features::is_legacy_gating_site( $this->blog_id ); | |
| 1593 | + } | |
| 1594 | + | |
| 1595 | + /** | |
| 1583 | 1596 | * Get the option of site intent which value is coming from the Hero Flow |
| 1584 | 1597 | * |
| 1585 | 1598 | * @return string |
| 1586 | 1599 | */ |
| @@ -1879,6 +1892,16 @@ | ||
| 1879 | 1892 | */ |
| 1880 | 1893 | public function get_jetpack_recovery_mode_status() { |
| 1881 | 1894 | $status = get_option( 'jetpack_recovery_mode_status' ); |
| 1882 | 1895 | return is_array( $status ) ? $status : null; |
| 1896 | + } | |
| 1897 | + | |
| 1898 | + /** | |
| 1899 | + * Whether WordPress.com accounts must have two-step authentication to log in through SSO. | |
| 1900 | + * | |
| 1901 | + * @return bool | |
| 1902 | + */ | |
| 1903 | + public function get_jetpack_sso_require_two_step() { | |
| 1904 | + /** This filter is documented in projects/packages/connection/src/sso/class-helpers.php */ | |
| 1905 | + return (bool) apply_filters( 'jetpack_sso_require_two_step', get_option( 'jetpack_sso_require_two_step', false ) ); | |
| 1883 | 1906 | } |
| 1884 | 1907 | } |