[wp-trac] [WordPress Trac] #21389: Retina theme custom headers

WordPress Trac noreply at wordpress.org
Sat Nov 7 01:01:18 UTC 2015


#21389: Retina theme custom headers
-------------------------------------------------+-------------------------
 Reporter:  nacin                                |       Owner:  joemcgill
     Type:  task (blessed)                       |      Status:  assigned
 Priority:  normal                               |   Milestone:  4.4
Component:  Customize                            |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  responsive-images has-patch 2nd-     |     Focuses:
  opinion                                        |
-------------------------------------------------+-------------------------

Comment (by azaozz):

 Replying to [comment:35 DH-Shredder]:
 > However, it looks like 21389.(1 and 2).diff are missing classes in the
 image's generated HTML, so headers break layout with 21389.(1 and 2).diff

 This is a new function. If the themes want to have a class set, they will
 have to pass it in the (optional) `$attr` array:
 {{{
 $add_classes = array( 'class' => 'one two three' );
 the_header_image_tag( $add_classes );
 }}}

 This works in exactly the same way in all of the patches.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/21389#comment:36>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list