diff --git a/projects/plugins/jetpack/json-endpoints/class.wpcom-json-api-site-settings-endpoint.php b/projects/plugins/jetpack/json-endpoints/class.wpcom-json-api-site-settings-endpoint.php index a1fcbf8ef0d46..9a01d8bea41dc 100644 --- a/projects/plugins/jetpack/json-endpoints/class.wpcom-json-api-site-settings-endpoint.php +++ b/projects/plugins/jetpack/json-endpoints/class.wpcom-json-api-site-settings-endpoint.php @@ -367,8 +367,8 @@ public function get_settings_response() { 'jetpack_sync_non_public_post_stati' => (bool) Jetpack_Options::get_option( 'sync_non_public_post_stati' ), 'jetpack_relatedposts_allowed' => (bool) $this->jetpack_relatedposts_supported(), 'jetpack_relatedposts_enabled' => (bool) $jetpack_relatedposts_options['enabled'], - 'jetpack_relatedposts_show_context' => isset( $jetpack_relatedposts_options['show_context'] ) && $jetpack_relatedposts_options['show_context'], - 'jetpack_relatedposts_show_date' => isset( $jetpack_relatedposts_options['show_date'] ) && $jetpack_relatedposts_options['show_date'], + 'jetpack_relatedposts_show_context' => (bool) ( isset( $jetpack_relatedposts_options['show_context'] ) && $jetpack_relatedposts_options['show_context'] ), + 'jetpack_relatedposts_show_date' => (bool) ( isset( $jetpack_relatedposts_options['show_date'] ) && $jetpack_relatedposts_options['show_date'] ), 'jetpack_relatedposts_show_headline' => (bool) isset( $jetpack_relatedposts_options['show_headline'] ) ? $jetpack_relatedposts_options['show_headline'] : false, 'jetpack_relatedposts_show_thumbnails' => (bool) isset( $jetpack_relatedposts_options['show_thumbnails'] ) ? $jetpack_relatedposts_options['show_thumbnails'] : false, 'jetpack_search_enabled' => (bool) $jetpack_search_active,