[wp-trac] [WordPress Trac] #17240: Themes: Add ability to show a random header image
WordPress Trac
wp-trac at lists.automattic.com
Wed Apr 27 18:57:48 UTC 2011
#17240: Themes: Add ability to show a random header image
------------------------------------+------------------
Reporter: lancewillett | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: 3.2
Component: Themes | Version:
Severity: normal | Resolution:
Keywords: has-patch dev-feedback |
------------------------------------+------------------
Comment (by lancewillett):
Second pass at patch introduces two new functions:
{{{get_random_header_image()}}}
and
{{{is_random_header_image()}}}
* Check if random header image is in use.
* Always true if user expressly chooses the option in Appearance >
Header.
* Also true if theme has multiple header images registered and no
specific header image is chosen.
Theme does not have to explicitly add support for this feature—all that's
needed an array of registered images.
In Appearance > Header form, show the random image option if this theme
has multiple header images. The option is checked by default if no header
has been set.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17240#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list