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: http://core.svn.wordpress.org/trunk@21329 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cb4f0bf507
commit
8b283073d0
|
@ -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' );
|
||||
|
||||
|
|
Loading…
Reference in New Issue