Merged
Conversation
youknowriad
reviewed
Mar 28, 2018
components/media-upload/index.js
Outdated
Contributor
There was a problem hiding this comment.
I'm not sure we want to move components relying on filters to the components folder. I feel like the components folder is for generic React components while adding filters adds an unwanted dependency the wp hooks.
I guess it's probably not the first component doing this, but I wanted to share this concern of mine.
Member
Author
Member
There was a problem hiding this comment.
In general, I see this is a block tool, so placing it in the blocks folder makes sense. Not sure how that will evolve, but I expect most block API UI items to be there.
Member
Author
There was a problem hiding this comment.
Thanks for leaving your feedback 👍
9936b60 to
d072b90
Compare
3 tasks
d072b90 to
35df645
Compare
Member
Author
|
Updated PR to include only docs update. |
35df645 to
f0a828b
Compare
f0a828b to
96b1817
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Follow-up for #5211:
This PR adds missing documentation which explains how
MediaUploadcomponent can be overridden and explains why it is structured this way.When working on the docs I came up to the conclusion that
MediaUploadcan be now moved to thecomponentsmodule. I added deprecation logic to make sure that there is proper feedback provided for the developers that decided to use this component.How Has This Been Tested?
Manually tested to confirm that there are no regressions. It should be still possible
Run
npm testto make sure all tests still pass.