Skip to content

Fields: Replace the FeaturedImageEdit field to a more general MediaUpload field #72614

@talldan

Description

@talldan

What problem does this address?

The existing FeaturedImageEdit field looks it only has one purpose - for setting the featured image:
https://github.com/WordPress/gutenberg/blob/trunk/packages/fields/src/fields/featured-image/featured-image-edit.tsx

There's not much in the implementation that means this has to be the case. I think it's worth considering updating the implementation to be a more general MediaUpload (or perhaps just Media) field that can be used more broadly. For example, setting the site logo, the use cases in #71730, and possibly more.

Status

Metadata

Metadata

Assignees

No fields configured for Enhancement.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions