Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #17242, comment 50


Ignore:
Timestamp:
02/01/2012 06:43:52 PM (11 years ago)
Author:
aaroncampbell
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17242, comment 50

    initial v1  
    1 [attachment:17242-height-width.2.diff] is based on feedback from nacin and Mark Jaquith in [https://irclogs.wordpress.org/chanlog.php?channel=wordpress-dev&day=2012-02-01&sort=asc#m360105 IRC].  * It gets rid of `theme_supports_flex_width_headers()` and `theme_supports_flex_height_headers()` in favor of `current_theme_supports( 'custom-header', 'flex-width' )`.
     1[attachment:17242-height-width.2.diff] is based on feedback from nacin and Mark Jaquith in [https://irclogs.wordpress.org/chanlog.php?channel=wordpress-dev&day=2012-02-01&sort=asc#m360105 IRC].
     2
     3* It gets rid of `theme_supports_flex_width_headers()` and `theme_supports_flex_height_headers()` in favor of `current_theme_supports( 'custom-header', 'flex-width' )`.
    24* It changes `get_random_header_data()` to return an object so it can be chained like `get_random_header_data()->width`.
    35* It introduces `get_current_header_data()` which also returns an object, and it adds the attachment id to that object as ->id if it's an uploaded image.