Skip to content

Commit

Permalink
[not verified] Bring back the bool cast
Browse files Browse the repository at this point in the history
  • Loading branch information
mashikag committed Jan 13, 2023
1 parent 0d07867 commit d3a108c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d3a108c

Please sign in to comment.