|
@@ 2844-2848 (lines=5) @@
|
| 2841 |
|
$options = self::split_options( $options, $sharer->get_global_options() ); |
| 2842 |
|
$options['sharing_services']['current_value'] = $sharer->get_blog_services(); |
| 2843 |
|
$other_sharedaddy_options = array( 'jetpack-twitter-cards-site-tag', 'sharedaddy_disable_resources', 'sharing_delete_service' ); |
| 2844 |
|
foreach ( $other_sharedaddy_options as $key ) { |
| 2845 |
|
$default_value = isset( $options[ $key ]['default'] ) ? $options[ $key ]['default'] : ''; |
| 2846 |
|
$current_value = get_option( $key, $default_value ); |
| 2847 |
|
$options[ $key ]['current_value'] = self::cast_value( $current_value, $options[ $key ] ); |
| 2848 |
|
} |
| 2849 |
|
break; |
| 2850 |
|
|
| 2851 |
|
case 'stats': |
|
@@ 2860-2864 (lines=5) @@
|
| 2857 |
|
break; |
| 2858 |
|
default: |
| 2859 |
|
// These option are just stored as plain WordPress options. |
| 2860 |
|
foreach ( $options as $key => $value ) { |
| 2861 |
|
$default_value = isset( $options[ $key ]['default'] ) ? $options[ $key ]['default'] : ''; |
| 2862 |
|
$current_value = get_option( $key, $default_value ); |
| 2863 |
|
$options[ $key ]['current_value'] = self::cast_value( $current_value, $options[ $key ] ); |
| 2864 |
|
} |
| 2865 |
|
} |
| 2866 |
|
// At this point some options have current_value not set because they're options |
| 2867 |
|
// that only get written on update, so we set current_value to the default one. |