| 1 | Index: wp-content/themes/twentyeleven/inc/theme-options.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-content/themes/twentyeleven/inc/theme-options.php (revision 20607) |
|---|
| 4 | +++ wp-content/themes/twentyeleven/inc/theme-options.php (working copy) |
|---|
| 5 | @@ -31,16 +31,10 @@ |
|---|
| 6 | * which is used when the option is saved, to ensure that our option values are complete, properly |
|---|
| 7 | * formatted, and safe. |
|---|
| 8 | * |
|---|
| 9 | - * We also use this function to add our theme option if it doesn't already exist. |
|---|
| 10 | - * |
|---|
| 11 | * @since Twenty Eleven 1.0 |
|---|
| 12 | */ |
|---|
| 13 | function twentyeleven_theme_options_init() { |
|---|
| 14 | |
|---|
| 15 | - // If we have no options in the database, let's add them now. |
|---|
| 16 | - if ( false === twentyeleven_get_theme_options() ) |
|---|
| 17 | - add_option( 'twentyeleven_theme_options', twentyeleven_get_default_theme_options() ); |
|---|
| 18 | - |
|---|
| 19 | register_setting( |
|---|
| 20 | 'twentyeleven_options', // Options group, see settings_fields() call in twentyeleven_theme_options_render_page() |
|---|
| 21 | 'twentyeleven_theme_options', // Database option, see twentyeleven_get_theme_options() |
|---|