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

git-svn-id: http://core.svn.wordpress.org/trunk@20875 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2012-05-24 07:38:13 +00:00
parent c1fe189ec3
commit 5a1279320a
1 changed files with 0 additions and 6 deletions

View File

@ -31,16 +31,10 @@ add_action( 'admin_print_styles-appearance_page_theme_options', 'twentyeleven_ad
* which is used when the option is saved, to ensure that our option values are complete, properly
* formatted, and safe.
*
* We also use this function to add our theme option if it doesn't already exist.
*
* @since Twenty Eleven 1.0
*/
function twentyeleven_theme_options_init() {
// If we have no options in the database, let's add them now.
if ( false === twentyeleven_get_theme_options() )
add_option( 'twentyeleven_theme_options', twentyeleven_get_default_theme_options() );
register_setting(
'twentyeleven_options', // Options group, see settings_fields() call in twentyeleven_theme_options_render_page()
'twentyeleven_theme_options', // Database option, see twentyeleven_get_theme_options()