| @@ 559-568 (lines=10) @@ | ||
| 556 | $updated = $grouped_options_current != $grouped_options ? update_option( 'verification_services_codes', $grouped_options ) : true; |
|
| 557 | break; |
|
| 558 | ||
| 559 | case 'sharing_services': |
|
| 560 | if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
|
| 561 | break; |
|
| 562 | } |
|
| 563 | ||
| 564 | $sharer = new Sharing_Service(); |
|
| 565 | ||
| 566 | // If option value was the same, consider it done. |
|
| 567 | $updated = $value != $sharer->get_blog_services() ? $sharer->set_blog_services( $value['visible'], $value['hidden'] ) : true; |
|
| 568 | break; |
|
| 569 | ||
| 570 | case 'button_style': |
|
| 571 | case 'sharing_label': |
|
| @@ 2092-2100 (lines=9) @@ | ||
| 2089 | $options = self::split_options( $options, get_option( 'verification_services_codes' ) ); |
|
| 2090 | break; |
|
| 2091 | ||
| 2092 | case 'sharedaddy': |
|
| 2093 | // It's local, but it must be broken apart since it's saved as an array. |
|
| 2094 | if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
|
| 2095 | break; |
|
| 2096 | } |
|
| 2097 | $sharer = new Sharing_Service(); |
|
| 2098 | $options = self::split_options( $options, $sharer->get_global_options() ); |
|
| 2099 | $options['sharing_services']['current_value'] = $sharer->get_blog_services(); |
|
| 2100 | break; |
|
| 2101 | ||
| 2102 | case 'after-the-deadline': |
|
| 2103 | if ( ! function_exists( 'AtD_get_options' ) ) { |
|