Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove "security" verbiage from warning when filetype does not pass on upload. #36226

Conversation

antpb
Copy link
Contributor

@antpb antpb commented Nov 4, 2021

Description

Per https://core.trac.wordpress.org/ticket/53626 there is a change to upload failure strings that will need to be merged in on the Gutenberg side of things as well as the trac patch.

Copied from the original track ticket:

Currently when uploading a media item that is not supported, the default message claims that the reason it cannot upload is due to security reasons. This is not always true. We should expand on this to be either conditional to show security message on valid security risks, or just a general "this file type is not supported" message for all types uploaded. I lean more toward the general message.

How has this been tested?

This is a simple string change that has been landed on through discussion in component meetings and through the ticket: https://core.trac.wordpress.org/ticket/53626

Types of changes

String change to mime failure message to remove references to security issues.

@antpb antpb requested a review from joedolson November 4, 2021 19:41
Copy link
Contributor

@joedolson joedolson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Shockingly, there isn't much to say about this PR... ;)

@getsource getsource added [Feature] Media Anything that impacts the experience of managing media [Type] Enhancement A suggestion for improvement. labels Nov 5, 2021
Copy link
Member

@getsource getsource left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks!

Before:
Screen Shot 2021-11-05 at 14 11 31

After:

Screen Shot 2021-11-05 at 14 16 07

@getsource getsource merged commit 921e3ec into WordPress:trunk Nov 5, 2021
@github-actions github-actions bot added this to the Gutenberg 11.9 milestone Nov 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Media Anything that impacts the experience of managing media [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants