From 81755c790e68e55d36e768d30fe9bea246384543 Mon Sep 17 00:00:00 2001 From: Andrew 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: https://develop.svn.wordpress.org/trunk@17740 602fd350-edb4-49c9-b593-d223f7449a82 --- .../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 49b3382dbd..9f3193fc4c 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() {