| @@ 583-592 (lines=10) @@ | ||
| 580 | $updated = $grouped_options_current != $grouped_options ? update_option( 'verification_services_codes', $grouped_options ) : true; |
|
| 581 | break; |
|
| 582 | ||
| 583 | case 'sharing_services': |
|
| 584 | if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
|
| 585 | break; |
|
| 586 | } |
|
| 587 | ||
| 588 | $sharer = new Sharing_Service(); |
|
| 589 | ||
| 590 | // If option value was the same, consider it done. |
|
| 591 | $updated = $value != $sharer->get_blog_services() ? $sharer->set_blog_services( $value['visible'], $value['hidden'] ) : true; |
|
| 592 | break; |
|
| 593 | ||
| 594 | case 'button_style': |
|
| 595 | case 'sharing_label': |
|
| @@ 2079-2087 (lines=9) @@ | ||
| 2076 | $options = self::split_options( $options, get_option( 'verification_services_codes' ) ); |
|
| 2077 | break; |
|
| 2078 | ||
| 2079 | case 'sharedaddy': |
|
| 2080 | // It's local, but it must be broken apart since it's saved as an array. |
|
| 2081 | if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
|
| 2082 | break; |
|
| 2083 | } |
|
| 2084 | $sharer = new Sharing_Service(); |
|
| 2085 | $options = self::split_options( $options, $sharer->get_global_options() ); |
|
| 2086 | $options['sharing_services']['current_value'] = $sharer->get_blog_services(); |
|
| 2087 | break; |
|
| 2088 | ||
| 2089 | case 'after-the-deadline': |
|
| 2090 | if ( ! function_exists( 'AtD_get_options' ) ) { |
|