|
@@ 669-675 (lines=7) @@
|
| 666 |
|
case 'google': |
| 667 |
|
case 'bing': |
| 668 |
|
case 'pinterest': |
| 669 |
|
case 'yandex': |
| 670 |
|
$grouped_options = $grouped_options_current = (array) get_option( 'verification_services_codes' ); |
| 671 |
|
$grouped_options[$option] = $value; |
| 672 |
|
|
| 673 |
|
// If option value was the same, consider it done. |
| 674 |
|
$updated = $grouped_options_current != $grouped_options ? update_option( 'verification_services_codes', $grouped_options ) : true; |
| 675 |
|
break; |
| 676 |
|
|
| 677 |
|
case 'sharing_services': |
| 678 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! include_once( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
|
@@ 789-795 (lines=7) @@
|
| 786 |
|
case 'blog_id': |
| 787 |
|
case 'do_not_track': |
| 788 |
|
case 'hide_smile': |
| 789 |
|
case 'version': |
| 790 |
|
$grouped_options = $grouped_options_current = (array) get_option( 'stats_options' ); |
| 791 |
|
$grouped_options[$option] = $value; |
| 792 |
|
|
| 793 |
|
// If option value was the same, consider it done. |
| 794 |
|
$updated = $grouped_options_current != $grouped_options ? update_option( 'stats_options', $grouped_options ) : true; |
| 795 |
|
break; |
| 796 |
|
|
| 797 |
|
case Jetpack_Core_Json_Api_Endpoints::holiday_snow_option_name(): |
| 798 |
|
$updated = get_option( $option ) != $value ? update_option( $option, (bool) $value ? 'letitsnow' : '' ) : true; |
|
@@ 852-858 (lines=7) @@
|
| 849 |
|
$updated = false; |
| 850 |
|
break; |
| 851 |
|
|
| 852 |
|
case 'google_analytics_tracking_id': |
| 853 |
|
$grouped_options = $grouped_options_current = (array) get_option( 'jetpack_wga' ); |
| 854 |
|
$grouped_options[ 'code' ] = $value; |
| 855 |
|
|
| 856 |
|
// If option value was the same, consider it done. |
| 857 |
|
$updated = $grouped_options_current != $grouped_options ? update_option( 'jetpack_wga', $grouped_options ) : true; |
| 858 |
|
break; |
| 859 |
|
|
| 860 |
|
case 'dismiss_dash_app_card': |
| 861 |
|
case 'dismiss_empty_stats_card': |