PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-a.7
Jetpack – WP Security, Backup, Speed, & Growth v16.3-a.7
16.3-a.5 16.3-a.7 16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 All 506 releases
← All changes | sal/class.json-api-site-base.php +23 -0 16.3-a.1 → 16.3-a.7 View file →
@@ -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 }