diff --git a/wp-content/themes/twentyeleven/inc/theme-options.php b/wp-content/themes/twentyeleven/inc/theme-options.php index 49b3382db..9f3193fc4 100644 --- a/wp-content/themes/twentyeleven/inc/theme-options.php +++ b/wp-content/themes/twentyeleven/inc/theme-options.php @@ -260,16 +260,16 @@ function twentyeleven_theme_options_validate( $input ) { * * @since Twenty Eleven 1.0 */ -function twentyeleven_color_styles() { +function twentyeleven_enqueue_color_scheme() { $options = twentyeleven_get_theme_options(); $color_scheme = $options['color_scheme']; if ( 'dark' == $color_scheme ) - wp_enqueue_style( 'dark', get_template_directory_uri() . '/colors/dark.css', null, null ); + wp_enqueue_style( 'dark', get_template_directory_uri() . '/colors/dark.css', array(), null ); - do_action( 'twentyeleven_color_schemes', $color_scheme ); + do_action( 'twentyeleven_enqueue_color_scheme', $color_scheme ); } -add_action( 'wp_enqueue_scripts', 'twentyeleven_color_styles' ); +add_action( 'wp_enqueue_scripts', 'twentyeleven_enqueue_color_scheme' ); /** * Add a style block to the theme for the current link color. @@ -278,7 +278,7 @@ add_action( 'wp_enqueue_scripts', 'twentyeleven_color_styles' ); * * @since Twenty Eleven 1.0 */ -function twentyeleven_link_color() { +function twentyeleven_print_link_color_style() { $options = twentyeleven_get_theme_options(); $link_color = $options['link_color']; @@ -297,30 +297,26 @@ function twentyeleven_link_color() {