[wp-trac] [WordPress Trac] #20768: Twenty Eleven Theme with Custom Header

WordPress Trac wp-trac at lists.automattic.com
Mon May 28 10:13:38 UTC 2012


#20768: Twenty Eleven Theme with Custom Header
---------------------------+-----------------------
 Reporter:  andrejcarter   |       Owner:
     Type:  defect (bug)   |      Status:  reopened
 Priority:  normal         |   Milestone:  3.4
Component:  Bundled Theme  |     Version:  3.4
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |
---------------------------+-----------------------
Changes (by kobenland):

 * keywords:   => has-patch


Comment:

 By replacing

 {{{
 #!php
 <?php
 set_post_thumbnail_size( get_theme_support( 'custom-header', 'width' ),
 get_theme_support( 'custom-header', 'height' ), true );
 }}}

 with

 {{{
 #!php
 <?php
 set_post_thumbnail_size( $custom_header_args['height'],
 $custom_header_args['width'], true );
 }}}

 in Twenty Ten's `functions.php`, we could even achieve backward
 compatibility to WordPress versions prior to 3.1

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20768#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list