| @@ 625-634 (lines=10) @@ | ||
| 622 | $updated = $grouped_options_current != $grouped_options ? update_option( 'verification_services_codes', $grouped_options ) : true; |
|
| 623 | break; |
|
| 624 | ||
| 625 | case 'sharing_services': |
|
| 626 | if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
|
| 627 | break; |
|
| 628 | } |
|
| 629 | ||
| 630 | $sharer = new Sharing_Service(); |
|
| 631 | ||
| 632 | // If option value was the same, consider it done. |
|
| 633 | $updated = $value != $sharer->get_blog_services() ? $sharer->set_blog_services( $value['visible'], $value['hidden'] ) : true; |
|
| 634 | break; |
|
| 635 | ||
| 636 | case 'button_style': |
|
| 637 | case 'sharing_label': |
|
| @@ 2111-2119 (lines=9) @@ | ||
| 2108 | $options[ 'google_analytics_tracking_id' ][ 'current_value' ] = $code; |
|
| 2109 | break; |
|
| 2110 | ||
| 2111 | case 'sharedaddy': |
|
| 2112 | // It's local, but it must be broken apart since it's saved as an array. |
|
| 2113 | if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
|
| 2114 | break; |
|
| 2115 | } |
|
| 2116 | $sharer = new Sharing_Service(); |
|
| 2117 | $options = self::split_options( $options, $sharer->get_global_options() ); |
|
| 2118 | $options['sharing_services']['current_value'] = $sharer->get_blog_services(); |
|
| 2119 | break; |
|
| 2120 | ||
| 2121 | case 'after-the-deadline': |
|
| 2122 | if ( ! function_exists( 'AtD_get_options' ) ) { |
|