Permalink
Browse files

replace add_custom_image_header()

replace add_custom_image_header() with add_theme_support(
‘custom-header’)
  • Loading branch information...
marpa committed Jan 18, 2015
1 parent 16faa20 commit f4660f680873ecbd67be7db743848b36e1b7d8da
Showing with 18 additions and 1 deletion.
  1. +18 −1 functions.php
View
@@ -264,7 +264,24 @@ function translucence_setup() {
// Add a way for the custom header to be styled in the admin panel that controls
// custom headers. See translucence_admin_header_style(), below.
add_custom_image_header( 'translucence_header_style', 'translucence_admin_header_style' );
// add_custom_image_header( 'translucence_header_style', 'translucence_admin_header_style' );
$defaults = array(
'default-image' => '',
'random-default' => false,
'width' => 0,
'height' => 0,
'flex-height' => false,
'flex-width' => false,
'default-text-color' => '',
'header-text' => true,
'uploads' => true,
'wp-head-callback' => 'translucence_header_style',
'admin-head-callback' => 'translucence_admin_header_style',
'admin-preview-callback' => '',
);
add_theme_support( 'custom-header', $defaults );
// ... and thus ends the changeable header business.

0 comments on commit f4660f6

Please sign in to comment.