Ticket #19743: 19743.2.diff
File 19743.2.diff, 1.0 KB (added by , 12 years ago) |
---|
-
wp-content/themes/twentyeleven/inc/theme-options.php
31 31 * which is used when the option is saved, to ensure that our option values are complete, properly 32 32 * formatted, and safe. 33 33 * 34 * We also use this function to add our theme option if it doesn't already exist.35 *36 34 * @since Twenty Eleven 1.0 37 35 */ 38 36 function twentyeleven_theme_options_init() { 39 37 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 44 38 register_setting( 45 39 'twentyeleven_options', // Options group, see settings_fields() call in twentyeleven_theme_options_render_page() 46 40 'twentyeleven_theme_options', // Database option, see twentyeleven_get_theme_options()