Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#17291 closed enhancement (fixed)

Introduce _media_states() to show the status (background, header) on Media page

Reported by: ocean90 Owned by: ryan
Priority: normal Milestone: 3.2
Component: Media Version: 3.2
Severity: normal Keywords: has-patch ui-feedback
Cc: Focuses:

Description

My idea is, to introduce _media_states for the media list screen. (_post_states() exists for the posts screen).

Screenshot: ​http://d.pr/WEf7

_media_states() should show if the image is used as a background and/or header image.

This is related to #15100 and #17240.

Attachments (2)

17291.patch​ (2.9 KB ) - added by ocean90 16 years ago.
17291.2.patch​ (2.8 KB ) - added by ocean90 16 years ago.

Download all attachments as: .zip

Change History (10)

#1 @scribu
16 years ago

I would loose the 'Custom' bit: 'Background Image' and 'Header Image' is clear enough, IMO.

#2 @scribu
16 years ago

Also, you either use _x() - not necessary - or you don't set the second parameter to __().

Last edited 16 years ago by scribu (previous) (diff)

#3 @ocean90
16 years ago

  • Milestone Future Release → 3.2

scribu, thanks. I forgot to remove the second parameter. I also have removed 'Custom'. We doesn't use it in strings, only in code.

Marking as 3.2 because I think it's a nice addition to #17240.

#4 @johnbillion
16 years ago

That patch doesn't remove the _wp_attachment_is_custom_background custom field from the attachment when you change the background image. You end up with multiple media items with Background Image as the state.

#5 @nacin
16 years ago

Correct, because I believe the idea is that you can switch among uploaded custom backgrounds. So we need to track any uploaded through there, rather than the current one.

#6 follow-up: @ocean90
16 years ago

johnbillion, the same will be happen for Header Image.

At the moment it isn't possible to delete a custom header/background image on the header/background screen. This idea could help you.

Sidenote: Maybe we should also introduce a way to register background images and list custom background images on the background screen too, like we do it now for header images. (see get_uploaded_header_images()).

#7 in reply to: ↑ 6 @johnbillion
16 years ago

Replying to ocean90:

Sidenote: Maybe we should also introduce a way to register background images and list custom background images on the background screen too, like we do it now for header images. (see get_uploaded_header_images()).

This would be ideal. One step better would be if the header image and background image functionality shared the same code base and their respective admin screens worked the same way.

#8 @ryan
16 years ago

  • Owner set to ryan
  • Resolution → fixed
  • Status new → closed

In [17793]:

Denote images that are headers or backgrounds in the media ui. Props ocean90. fixes #17291

Note: See TracTickets for help on using tickets.