WordPress.org

Make WordPress Core

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

File twenty-eleven-options-patch.diff, 803 bytes (added by emhr, 8 years ago)
  • trunk/wp-content/themes/twentyeleven/inc/theme-options.php

     
    3737 */
    3838function twentyeleven_theme_options_init() {
    3939
    40         // If we have no options in the database, let's add them now.
    41         if ( false === twentyeleven_get_theme_options() )
    42                 add_option( 'twentyeleven_theme_options', twentyeleven_get_default_theme_options() );
    43 
    4440        register_setting(
    4541                'twentyeleven_options',       // Options group, see settings_fields() call in twentyeleven_theme_options_render_page()
    4642                'twentyeleven_theme_options', // Database option, see twentyeleven_get_theme_options()