diff --git a/wp-content/themes/twentyfourteen/inc/custom-header.php b/wp-content/themes/twentyfourteen/inc/custom-header.php index 89b89b6d14..ea6792d632 100644 --- a/wp-content/themes/twentyfourteen/inc/custom-header.php +++ b/wp-content/themes/twentyfourteen/inc/custom-header.php @@ -7,79 +7,27 @@ /** * Setup the WordPress core custom header feature. * - * Use add_theme_support to register support for WordPress 3.4+ - * as well as provide backward compatibility for previous versions. - * Use feature detection of wp_get_theme() which was introduced - * in WordPress 3.4. - * - * @todo Rework this function to remove WordPress 3.4 support when WordPress 3.6 is released. - * * @uses twentyfourteen_header_style() * @uses twentyfourteen_admin_header_style() * @uses twentyfourteen_admin_header_image() - * - * @package WordPress - * @subpackage Twenty_Fourteen */ function twentyfourteen_custom_header_setup() { add_theme_support( 'custom-header', apply_filters( 'twentyfourteen_custom_header_args', array( - 'default-text-color' => 'fff', + 'header-text' => false, 'width' => 1260, 'height' => 240, 'flex-height' => true, - 'wp-head-callback' => 'twentyfourteen_header_style', 'admin-head-callback' => 'twentyfourteen_admin_header_style', 'admin-preview-callback' => 'twentyfourteen_admin_header_image', ) ) ); - } add_action( 'after_setup_theme', 'twentyfourteen_custom_header_setup' ); -if ( ! function_exists( 'twentyfourteen_header_style' ) ) : -/** - * Styles the header image and text displayed on the blog - * - * @see twentyfourteen_custom_header_setup(). - * - */ -function twentyfourteen_header_style() { - $header_text_color = get_header_textcolor(); - - // If no custom options for text are set, let's bail - // $header_text_color options: HEADER_TEXTCOLOR is default, hide text (returns 'blank') or any hex value - if ( HEADER_TEXTCOLOR == $header_text_color ) - return; - // If we get this far, we have custom styles. Let's do this. - ?> - - Header admin panel. * * @see twentyfourteen_custom_header_setup(). - * */ function twentyfourteen_admin_header_style() { ?> @@ -113,16 +61,14 @@ if ( ! function_exists( 'twentyfourteen_admin_header_image' ) ) : * Custom header image markup displayed on the Appearance > Header admin panel. * * @see twentyfourteen_custom_header_setup(). - * */ function twentyfourteen_admin_header_image() { - $header_image = get_header_image(); ?>
- - + + -

onclick="return false;" href="">

+