From 58aa6a124a706c221b7c0373385ca95c6d886367 Mon Sep 17 00:00:00 2001 From: nacin Date: Thu, 28 Apr 2011 11:05:53 +0000 Subject: [PATCH] Rename twentyeleven_color_schemes hook to twentyeleven_enqueue_color_scheme, so its purpose is clear. Also rename twentyeleven_color_styles() to twentyeleven_enqueue_color_scheme(), and twentyeleven_link_color() (which sounds like a getter) to twentyeleven_print_link_color_style(). Some tidying in twentyeleven_layout_classes(). see #17198. git-svn-id: http://svn.automattic.com/wordpress/trunk@17740 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../themes/twentyeleven/inc/theme-options.php | 30 ++++++++----------- 1 file changed, 13 insertions(+), 17 deletions(-) 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() {