diff options
Diffstat (limited to 'plugins/jetpack/json-endpoints/class.wpcom-json-api-get-site-endpoint.php')
-rw-r--r-- | plugins/jetpack/json-endpoints/class.wpcom-json-api-get-site-endpoint.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/jetpack/json-endpoints/class.wpcom-json-api-get-site-endpoint.php b/plugins/jetpack/json-endpoints/class.wpcom-json-api-get-site-endpoint.php index 3ebd3bc1..0f4ea160 100644 --- a/plugins/jetpack/json-endpoints/class.wpcom-json-api-get-site-endpoint.php +++ b/plugins/jetpack/json-endpoints/class.wpcom-json-api-get-site-endpoint.php @@ -49,6 +49,7 @@ class WPCOM_JSON_API_GET_Site_Endpoint extends WPCOM_JSON_API_Endpoint { protected static $site_options_format = array( 'timezone', 'gmt_offset', + 'blog_public', 'videopress_enabled', 'upgraded_filetypes_enabled', 'login_url', @@ -135,10 +136,7 @@ class WPCOM_JSON_API_GET_Site_Endpoint extends WPCOM_JSON_API_Endpoint { return $blog_id; } - // TODO: enable this when we can do so without being interfered with by - // other endpoints that might be wrapping this one. - // Uncomment and see failing test: test_jetpack_site_should_have_true_jetpack_property_via_site_meta - // $this->filter_fields_and_options(); + $this->filter_fields_and_options(); $response = $this->build_current_site_response(); @@ -482,6 +480,9 @@ class WPCOM_JSON_API_GET_Site_Endpoint extends WPCOM_JSON_API_Endpoint { case 'is_automated_transfer': $options[ $key ] = $site->is_automated_transfer(); break; + case 'blog_public': + $options[ $key ] = $site->get_blog_public(); + break; } } |