From fba89415813b9c14bfcc4ea7ba1b7149bdd9fed6 Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Wed, 25 Jul 2012 17:30:19 +0000 Subject: [PATCH] Twenty Twelve: remove unneeded filter (props nacin) and fix up PHP comment blocks in custom-header.php file for s/@package/@since/ on individual functions. See #21231. git-svn-id: https://develop.svn.wordpress.org/trunk@21329 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-content/themes/twentytwelve/inc/custom-header.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/wp-content/themes/twentytwelve/inc/custom-header.php b/wp-content/themes/twentytwelve/inc/custom-header.php index 5b3aaf24de..38733a1bf6 100644 --- a/wp-content/themes/twentytwelve/inc/custom-header.php +++ b/wp-content/themes/twentytwelve/inc/custom-header.php @@ -10,14 +10,13 @@ /** * Set up the WordPress core custom header arguments and settings. - * - * Use add_theme_support() to register support for WordPress 3.4+ + * Use add_theme_support() to register support for 3.4 and up. * * @uses twentytwelve_header_style() * @uses twentytwelve_admin_header_style() * @uses twentytwelve_admin_header_image() * - * @package Twenty_Twelve + * @since Twenty Twelve 1.0 */ function twentytwelve_custom_header_setup() { $args = array( @@ -43,8 +42,7 @@ function twentytwelve_custom_header_setup() { 'admin-preview-callback' => 'twentytwelve_admin_header_image', ); - // Add support and allow child themes to filter any of these arguments. - add_theme_support( 'custom-header', apply_filters( 'twentytwelve_custom_header_args', $args ) ); + add_theme_support( 'custom-header', $args ); } add_action( 'after_setup_theme', 'twentytwelve_custom_header_setup' );