|
@@ 2405-2409 (lines=5) @@
|
| 2402 |
|
$options = self::split_options( $options, $sharer->get_global_options() ); |
| 2403 |
|
$options['sharing_services']['current_value'] = $sharer->get_blog_services(); |
| 2404 |
|
$other_sharedaddy_options = array( 'jetpack-twitter-cards-site-tag', 'sharedaddy_disable_resources', 'sharing_delete_service' ); |
| 2405 |
|
foreach ( $other_sharedaddy_options as $key ) { |
| 2406 |
|
$default_value = isset( $options[ $key ]['default'] ) ? $options[ $key ]['default'] : ''; |
| 2407 |
|
$current_value = get_option( $key, $default_value ); |
| 2408 |
|
$options[ $key ]['current_value'] = self::cast_value( $current_value, $options[ $key ] ); |
| 2409 |
|
} |
| 2410 |
|
break; |
| 2411 |
|
|
| 2412 |
|
case 'after-the-deadline': |
|
@@ 2436-2440 (lines=5) @@
|
| 2433 |
|
break; |
| 2434 |
|
default: |
| 2435 |
|
// These option are just stored as plain WordPress options. |
| 2436 |
|
foreach ( $options as $key => $value ) { |
| 2437 |
|
$default_value = isset( $options[ $key ]['default'] ) ? $options[ $key ]['default'] : ''; |
| 2438 |
|
$current_value = get_option( $key, $default_value ); |
| 2439 |
|
$options[ $key ]['current_value'] = self::cast_value( $current_value, $options[ $key ] ); |
| 2440 |
|
} |
| 2441 |
|
} |
| 2442 |
|
// At this point some options have current_value not set because they're options |
| 2443 |
|
// that only get written on update, so we set current_value to the default one. |