Ticket #19743: twenty-eleven-options-patch.diff

File twenty-eleven-options-patch.diff, 803 bytes (added by emhr, 17 months ago)
Line 
1Index: trunk/wp-content/themes/twentyeleven/inc/theme-options.php
2===================================================================
3--- trunk/wp-content/themes/twentyeleven/inc/theme-options.php  (revision 19672)
4+++ trunk/wp-content/themes/twentyeleven/inc/theme-options.php  (working copy)
5@@ -37,10 +37,6 @@
6  */
7 function twentyeleven_theme_options_init() {
8 
9-       // If we have no options in the database, let's add them now.
10-       if ( false === twentyeleven_get_theme_options() )
11-               add_option( 'twentyeleven_theme_options', twentyeleven_get_default_theme_options() );
12-
13        register_setting(
14                'twentyeleven_options',       // Options group, see settings_fields() call in twentyeleven_theme_options_render_page()
15                'twentyeleven_theme_options', // Database option, see twentyeleven_get_theme_options()