summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYury German <blueknight@gentoo.org>2019-04-28 17:39:03 -0400
committerYury German <blueknight@gentoo.org>2019-04-28 17:39:03 -0400
commit2ab16973706e120bc344c83be6295b54fd908c57 (patch)
tree358267a52d9542c77c90e3663cea32d13b8cb639 /plugins/jetpack/json-endpoints/class.wpcom-json-api-site-settings-endpoint.php
parentUpdate twentysixteen 1.7 (diff)
downloadblogs-gentoo-2ab16973706e120bc344c83be6295b54fd908c57.tar.gz
blogs-gentoo-2ab16973706e120bc344c83be6295b54fd908c57.tar.bz2
blogs-gentoo-2ab16973706e120bc344c83be6295b54fd908c57.zip
Updating packages for 5.1.1
Signed-off-by: Yury German <blueknight@gentoo.org>
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.php18
1 files changed, 1 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 6c293b4d..d55a7e9b 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
@@ -101,7 +101,6 @@ new WPCOM_JSON_API_Site_Settings_Endpoint( array(
'site_icon' => '(int) Media attachment ID to use as site icon. Set to zero or an otherwise empty value to clear',
'api_cache' => '(bool) Turn on/off the Jetpack JSON API cache',
'posts_per_page' => '(int) Number of posts to show on blog pages',
- 'net_neutrality' => '(bool) Whether to show the net neutrality modal for a site',
'posts_per_rss' => '(int) Number of posts to show in the RSS feed',
'rss_use_excerpt' => '(bool) Whether the RSS feed will use post excerpts',
),
@@ -327,11 +326,6 @@ class WPCOM_JSON_API_Site_Settings_Endpoint extends WPCOM_JSON_API_Endpoint {
$api_cache = $is_jetpack ? (bool) get_option( 'jetpack_api_cache_enabled' ) : true;
- $net_neutrality_options = get_option( 'net_neutrality_options_2017' );
- $net_neutrality = ( $net_neutrality_options && ! empty( $net_neutrality_options['enabled'] ) )
- ? true
- : false;
-
$response[ $key ] = array(
// also exists as "options"
@@ -399,7 +393,6 @@ class WPCOM_JSON_API_Site_Settings_Endpoint extends WPCOM_JSON_API_Endpoint {
'amp_is_enabled' => (bool) function_exists( 'wpcom_is_amp_enabled' ) && wpcom_is_amp_enabled( $blog_id ),
'api_cache' => $api_cache,
'posts_per_page' => (int) get_option( 'posts_per_page' ),
- 'net_neutrality' => $net_neutrality,
'posts_per_rss' => (int) get_option( 'posts_per_rss' ),
'rss_use_excerpt' => (bool) get_option( 'rss_use_excerpt' ),
);
@@ -793,15 +786,6 @@ class WPCOM_JSON_API_Site_Settings_Endpoint extends WPCOM_JSON_API_Endpoint {
}
break;
- case 'net_neutrality':
- $original_value = $value;
- $value = array( 'enabled' => (bool) $value );
- if ( update_option( 'net_neutrality_options_2017', $value ) ) {
- $updated[ $key ] = $original_value;
- }
-
- break;
-
case 'rss_use_excerpt':
update_option( 'rss_use_excerpt', (int)(bool) $value );
break;
@@ -820,7 +804,7 @@ class WPCOM_JSON_API_Site_Settings_Endpoint extends WPCOM_JSON_API_Endpoint {
*/
$value = apply_filters( 'site_settings_endpoint_update_' . $key, $value );
$updated[ $key ] = $value;
- continue;
+ break;
}
// no worries, we've already whitelisted and casted arguments above