|
@@ 682-688 (lines=7) @@
|
| 679 |
|
case 'google': |
| 680 |
|
case 'bing': |
| 681 |
|
case 'pinterest': |
| 682 |
|
case 'yandex': |
| 683 |
|
$grouped_options = $grouped_options_current = (array) get_option( 'verification_services_codes' ); |
| 684 |
|
$grouped_options[$option] = $value; |
| 685 |
|
|
| 686 |
|
// If option value was the same, consider it done. |
| 687 |
|
$updated = $grouped_options_current != $grouped_options ? update_option( 'verification_services_codes', $grouped_options ) : true; |
| 688 |
|
break; |
| 689 |
|
|
| 690 |
|
case 'sharing_services': |
| 691 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! include_once( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
|
@@ 802-808 (lines=7) @@
|
| 799 |
|
case 'blog_id': |
| 800 |
|
case 'do_not_track': |
| 801 |
|
case 'hide_smile': |
| 802 |
|
case 'version': |
| 803 |
|
$grouped_options = $grouped_options_current = (array) get_option( 'stats_options' ); |
| 804 |
|
$grouped_options[$option] = $value; |
| 805 |
|
|
| 806 |
|
// If option value was the same, consider it done. |
| 807 |
|
$updated = $grouped_options_current != $grouped_options ? update_option( 'stats_options', $grouped_options ) : true; |
| 808 |
|
break; |
| 809 |
|
|
| 810 |
|
case Jetpack_Core_Json_Api_Endpoints::holiday_snow_option_name(): |
| 811 |
|
$updated = get_option( $option ) != $value ? update_option( $option, (bool) $value ? 'letitsnow' : '' ) : true; |
|
@@ 865-871 (lines=7) @@
|
| 862 |
|
$updated = false; |
| 863 |
|
break; |
| 864 |
|
|
| 865 |
|
case 'google_analytics_tracking_id': |
| 866 |
|
$grouped_options = $grouped_options_current = (array) get_option( 'jetpack_wga' ); |
| 867 |
|
$grouped_options[ 'code' ] = $value; |
| 868 |
|
|
| 869 |
|
// If option value was the same, consider it done. |
| 870 |
|
$updated = $grouped_options_current != $grouped_options ? update_option( 'jetpack_wga', $grouped_options ) : true; |
| 871 |
|
break; |
| 872 |
|
|
| 873 |
|
case 'dismiss_dash_app_card': |
| 874 |
|
case 'dismiss_empty_stats_card': |