[wp-trac] [WordPress Trac] #17242: Themes: Allow flexible sizes for custom header uploads

WordPress Trac wp-trac at lists.automattic.com
Mon Jan 30 20:30:43 UTC 2012


#17242: Themes: Allow flexible sizes for custom header uploads
----------------------------+------------------
 Reporter:  lancewillett    |       Owner:
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  3.4
Component:  Themes          |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  dev-feedback    |
----------------------------+------------------

Comment (by aaroncampbell):

 [attachment:17242.5.diff] adds a helper function
 `get_header_image_height()`. It also adds 'height' and 'width' elements to
 the header image array.  This will give themes the ability to package
 header images of all different heights.  This patch also puts the header
 preview back how it was (CSS background image) and uses the new
 `get_header_image_height()` for the CSS.

 We just need to figure out what we want to do with random headers and
 we'll be all set for flex heights.  Flex widths would actually be really
 easy to add at this point, so I still think we should try to get both into
 3.4.

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


More information about the wp-trac mailing list