Make WordPress Core

Opened 14 years ago

Closed 13 years ago

#15100 closed feature request (worksforme)

Tag/mark custom-header.php uploads

Reported by: mmn-o's profile MMN-o Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.1
Component: Upload Keywords:
Focuses: Cc:

Description

My suggestion is to mark, tag or somehow make it possible to filter out images uploaded with the 'custom header' upload page.

My reason is that I wish to have a random_header() function to replace the header image according to user preference.

I'm aware I can do this by having a theme add a filter to wp_create_file_in_uploads or similar, but then only header images uploaded thereafter will be marked as 'header images'.

A sideeffect of this is that when browsing through "Media" it would be possible to only list uploaded header images. That, however, is not part of this feature request.

Change History (8)

#1 @scribu
14 years ago

I'm aware I can do this by having a theme add a filter to wp_create_file_in_uploads or similar, but then only header images uploaded thereafter will be marked as 'header images'.

This would be the case anyway, since there's no way of distinguishing which images were meant as headers unless they were specifically marked so in the first place.

#2 @nacin
14 years ago

  • Milestone changed from Awaiting Review to Future Release

#3 @lancewillett
14 years ago

  • Cc lance@… added
  • Keywords custom-header.php image removed

+1 — I really like the idea of having the ability to upload your own header images and rotate them. It would be a natural extension of rotating theme header images (see #17240).

Using the media library to show which images are intended for header images makes sense. This requires a way to show in the UI (maybe media library) all header images you've uploaded so you can reuse one instead of uploading it again, and so that you can see which images will be used in the random rotation.

Another option would be to use any uploaded header image in the rotation; if you don't want it in the rotation you'd delete it.

Images could also be managed from Appearance > Header in a new tab instead of via Media Library.

#4 @ocean90
14 years ago

  • Keywords needs-patch added; random header_image upload removed

#5 @azaozz
14 years ago

I can see this implemented when uploading images from the header settings screen, i.e. if the user starts the uploader from the theme options page we add some meta to indicate the images are intended for the header. Also can have a checkbox when browsing the media library from the same screen to select previously uploaded images for headers.

#8 @ocean90
13 years ago

  • Keywords needs-patch removed
  • Milestone Future Release deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Possible since 3.2.

Note: See TracTickets for help on using tickets.