@@ 720-726 (lines=7) @@ | ||
717 | case 'google': |
|
718 | case 'bing': |
|
719 | case 'pinterest': |
|
720 | case 'yandex': |
|
721 | $grouped_options = $grouped_options_current = (array) get_option( 'verification_services_codes' ); |
|
722 | $grouped_options[$option] = $value; |
|
723 | ||
724 | // If option value was the same, consider it done. |
|
725 | $updated = $grouped_options_current != $grouped_options ? update_option( 'verification_services_codes', $grouped_options ) : true; |
|
726 | break; |
|
727 | ||
728 | case 'sharing_services': |
|
729 | if ( ! class_exists( 'Sharing_Service' ) && ! include_once( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
|
@@ 840-846 (lines=7) @@ | ||
837 | case 'blog_id': |
|
838 | case 'do_not_track': |
|
839 | case 'hide_smile': |
|
840 | case 'version': |
|
841 | $grouped_options = $grouped_options_current = (array) get_option( 'stats_options' ); |
|
842 | $grouped_options[$option] = $value; |
|
843 | ||
844 | // If option value was the same, consider it done. |
|
845 | $updated = $grouped_options_current != $grouped_options ? update_option( 'stats_options', $grouped_options ) : true; |
|
846 | break; |
|
847 | ||
848 | case Jetpack_Core_Json_Api_Endpoints::holiday_snow_option_name(): |
|
849 | $updated = get_option( $option ) != $value ? update_option( $option, (bool) $value ? 'letitsnow' : '' ) : true; |
|
@@ 903-909 (lines=7) @@ | ||
900 | $updated = false; |
|
901 | break; |
|
902 | ||
903 | case 'google_analytics_tracking_id': |
|
904 | $grouped_options = $grouped_options_current = (array) get_option( 'jetpack_wga' ); |
|
905 | $grouped_options[ 'code' ] = $value; |
|
906 | ||
907 | // If option value was the same, consider it done. |
|
908 | $updated = $grouped_options_current != $grouped_options ? update_option( 'jetpack_wga', $grouped_options ) : true; |
|
909 | break; |
|
910 | ||
911 | case 'dismiss_dash_app_card': |
|
912 | case 'dismiss_empty_stats_card': |