diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2018-04-10 22:00:23 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2018-04-10 22:00:23 -0400 |
commit | a9f67089ebcadba2c7392e91d77c1b32a5515c1a (patch) | |
tree | 46d486f0aabbaa08f2ed083e1e65cf05dfcecdb8 /plugins/jetpack/json-endpoints/class.wpcom-json-api-site-settings-endpoint.php | |
parent | Update wordpress-mobile-pack 3.3 (diff) | |
download | blogs-gentoo-a9f67089ebcadba2c7392e91d77c1b32a5515c1a.tar.gz blogs-gentoo-a9f67089ebcadba2c7392e91d77c1b32a5515c1a.tar.bz2 blogs-gentoo-a9f67089ebcadba2c7392e91d77c1b32a5515c1a.zip |
Update jetpack 6.0
Diffstat (limited to 'plugins/jetpack/json-endpoints/class.wpcom-json-api-site-settings-endpoint.php')
-rw-r--r-- | plugins/jetpack/json-endpoints/class.wpcom-json-api-site-settings-endpoint.php | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/plugins/jetpack/json-endpoints/class.wpcom-json-api-site-settings-endpoint.php b/plugins/jetpack/json-endpoints/class.wpcom-json-api-site-settings-endpoint.php index cf421fad..b450c3ea 100644 --- a/plugins/jetpack/json-endpoints/class.wpcom-json-api-site-settings-endpoint.php +++ b/plugins/jetpack/json-endpoints/class.wpcom-json-api-site-settings-endpoint.php @@ -80,7 +80,6 @@ new WPCOM_JSON_API_Site_Settings_Endpoint( array( 'twitter_via' => '(string) Twitter username to include in tweets when people share using the Twitter button', 'jetpack-twitter-cards-site-tag' => '(string) The Twitter username of the owner of the site\'s domain.', 'eventbrite_api_token' => '(int) The Keyring token ID for an Eventbrite token to associate with the site', - 'holidaysnow' => '(bool) Enable snowfall on frontend of site?', 'timezone_string' => '(string) PHP-compatible timezone string like \'UTC-5\'', 'gmt_offset' => '(int) Site offset from UTC in hours', 'date_format' => '(string) PHP Date-compatible date format', @@ -277,11 +276,6 @@ class WPCOM_JSON_API_Site_Settings_Endpoint extends WPCOM_JSON_API_Endpoint { ) ); - $holiday_snow = false; - if ( function_exists( 'jetpack_holiday_snow_option_name' ) ) { - $holiday_snow = (bool) get_option( jetpack_holiday_snow_option_name() ); - } - $api_cache = $is_jetpack ? (bool) get_option( 'jetpack_api_cache_enabled' ) : true; $response[ $key ] = array( @@ -332,7 +326,6 @@ class WPCOM_JSON_API_Site_Settings_Endpoint extends WPCOM_JSON_API_Endpoint { 'twitter_via' => (string) get_option( 'twitter_via' ), 'jetpack-twitter-cards-site-tag' => (string) get_option( 'jetpack-twitter-cards-site-tag' ), 'eventbrite_api_token' => $this->get_cast_option_value_or_null( 'eventbrite_api_token', 'intval' ), - 'holidaysnow' => $holiday_snow, 'gmt_offset' => get_option( 'gmt_offset' ), 'timezone_string' => get_option( 'timezone_string' ), 'date_format' => get_option( 'date_format' ), @@ -576,16 +569,6 @@ class WPCOM_JSON_API_Site_Settings_Endpoint extends WPCOM_JSON_API_Endpoint { } break; - case 'holidaysnow': - if ( empty( $value ) || WPCOM_JSON_API::is_falsy( $value ) ) { - if ( function_exists( 'jetpack_holiday_snow_option_name' ) && delete_option( jetpack_holiday_snow_option_name() ) ) { - $updated[ $key ] = false; - } - } else if ( function_exists( 'jetpack_holiday_snow_option_name' ) && update_option( jetpack_holiday_snow_option_name(), 'letitsnow' ) ) { - $updated[ $key ] = true; - } - break; - case 'api_cache': if ( empty( $value ) || WPCOM_JSON_API::is_falsy( $value ) ) { if ( delete_option( 'jetpack_api_cache_enabled' ) ) { |