Make WordPress Core

Changeset 20875


Ignore:
Timestamp:
05/24/2012 07:38:13 AM (13 years ago)
Author:
markjaquith
Message:

Remove some dead add_option() code in Twenty Eleven. props Mamaduka, emhr. fixes #19743

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyeleven/inc/theme-options.php

    r20508 r20875  
    3232 * formatted, and safe.
    3333 *
    34  * We also use this function to add our theme option if it doesn't already exist.
    35  *
    3634 * @since Twenty Eleven 1.0
    3735 */
    3836function twentyeleven_theme_options_init() {
    39 
    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() );
    4337
    4438    register_setting(
Note: See TracChangeset for help on using the changeset viewer.