|
@@ 2617-2621 (lines=5) @@
|
| 2614 |
|
$options = self::split_options( $options, $sharer->get_global_options() ); |
| 2615 |
|
$options['sharing_services']['current_value'] = $sharer->get_blog_services(); |
| 2616 |
|
$other_sharedaddy_options = array( 'jetpack-twitter-cards-site-tag', 'sharedaddy_disable_resources', 'sharing_delete_service' ); |
| 2617 |
|
foreach ( $other_sharedaddy_options as $key ) { |
| 2618 |
|
$default_value = isset( $options[ $key ]['default'] ) ? $options[ $key ]['default'] : ''; |
| 2619 |
|
$current_value = get_option( $key, $default_value ); |
| 2620 |
|
$options[ $key ]['current_value'] = self::cast_value( $current_value, $options[ $key ] ); |
| 2621 |
|
} |
| 2622 |
|
break; |
| 2623 |
|
|
| 2624 |
|
case 'after-the-deadline': |
|
@@ 2648-2652 (lines=5) @@
|
| 2645 |
|
break; |
| 2646 |
|
default: |
| 2647 |
|
// These option are just stored as plain WordPress options. |
| 2648 |
|
foreach ( $options as $key => $value ) { |
| 2649 |
|
$default_value = isset( $options[ $key ]['default'] ) ? $options[ $key ]['default'] : ''; |
| 2650 |
|
$current_value = get_option( $key, $default_value ); |
| 2651 |
|
$options[ $key ]['current_value'] = self::cast_value( $current_value, $options[ $key ] ); |
| 2652 |
|
} |
| 2653 |
|
} |
| 2654 |
|
// At this point some options have current_value not set because they're options |
| 2655 |
|
// that only get written on update, so we set current_value to the default one. |