WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 5 months ago

#35865 new enhancement

Site Icon should be uploaded to a different directory or not able to be deleted from library

Reported by: DoodleDogCody Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.4
Component: Media Keywords:
Focuses: Cc:
PR Number:

Description

The new site icon feature is great. However I think if an image is set as the site icon, that image should be able to be deleted from the media library, or it should be uploaded somewhere else and use that location as its link.

Change History (5)

#1 in reply to: ↑ description @celsocos
4 years ago

This will be usefull, since we have some plugins that word with library and expect media files (not icons) so it would be better to use a directory than make the item read-only in lib.

Regards,

Replying to DoodleDogCody:

The new site icon feature is great. However I think if an image is set as the site icon, that image should be able to be deleted from the media library, or it should be uploaded somewhere else and use that location as its link.

#2 @DoodleDogCody
4 years ago

@celsocos Yes, the main thing is somehow allowing for certain photos to not be deleted if they are used in important sections of the site. Specifically the Site Icon. Just don't really want clients to have the ability to accidentally delete the image being used as the icon from their media library.

#3 @voldemortensen
4 years ago

Personally, I think this is an issue that doesn't have a good work around. What happens when you want to change icons? You'll have to manually delete the icon somehow, or just have unused files hanging around.

#4 @DoodleDogCody
4 years ago

What if media files could get an "important" meta tag or something which Plugin Authors and the site icon could attach a string that says what the media file is used for. Then before delete in the media library a warning with that string pops up. I think could be beneficial for lots of things.

#5 @celloexpressions
4 years ago

  • Component changed from Customize to Media

There are flags within the media metadata that could be used for some sort of visual UI in the media modal/library to indicate that the file is a site icon, similarly to what's shown in the list view. Suggest doing the same for header images, which have the same thing. Moving to the Media component since it seems to be a better place to address this. I wouldn't recommend looking down the path of uploading the files to a different place or excluding them from the media library.

Note: See TracTickets for help on using tickets.