| @@ 677-686 (lines=10) @@ | ||
| 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' ) ) { |
|
| 679 | break; |
|
| 680 | } |
|
| 681 | ||
| 682 | $sharer = new Sharing_Service(); |
|
| 683 | ||
| 684 | // If option value was the same, consider it done. |
|
| 685 | $updated = $value != $sharer->get_blog_services() ? $sharer->set_blog_services( $value['visible'], $value['hidden'] ) : true; |
|
| 686 | break; |
|
| 687 | ||
| 688 | case 'button_style': |
|
| 689 | case 'sharing_label': |
|
| @@ 2154-2162 (lines=9) @@ | ||
| 2151 | $options[ 'google_analytics_tracking_id' ][ 'current_value' ] = $code; |
|
| 2152 | break; |
|
| 2153 | ||
| 2154 | case 'sharedaddy': |
|
| 2155 | // It's local, but it must be broken apart since it's saved as an array. |
|
| 2156 | if ( ! class_exists( 'Sharing_Service' ) && ! include_once( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
|
| 2157 | break; |
|
| 2158 | } |
|
| 2159 | $sharer = new Sharing_Service(); |
|
| 2160 | $options = self::split_options( $options, $sharer->get_global_options() ); |
|
| 2161 | $options['sharing_services']['current_value'] = $sharer->get_blog_services(); |
|
| 2162 | break; |
|
| 2163 | ||
| 2164 | case 'after-the-deadline': |
|
| 2165 | if ( ! function_exists( 'AtD_get_options' ) ) { |
|