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

Bad style for post thumbnail with Svg images #41181

Closed
hamedmoody opened this issue May 20, 2022 · 1 comment
Closed

Bad style for post thumbnail with Svg images #41181

hamedmoody opened this issue May 20, 2022 · 1 comment
Labels
[Feature] Document Settings Document settings experience [Feature] Media Anything that impacts the experience of managing media [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed

Comments

@hamedmoody
Copy link

Description

When I allow Svg upload and set as post thumbnail it has bad style

Step-by-step reproduction instructions

  1. Add below code to functions.php
    add_filter( 'upload_mimes', function ( $mimes ){ $mimes['svg'] = 'image/svg+xml'; $mimes['svgz'] = 'image/svg+xml'; return $mimes; });
  2. Go to Post > new
  3. Upload Svg image
  4. You can see bad style

Screenshots, screen recording, code snippet

You can see ticket #55778 in wordpress core track or click here

Environment info

Wordpres 6.0 RC3

Please confirm that you have searched existing issues in the repo.

No

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@Mamaduka
Copy link
Member

Thanks for contributing, @hamedmoody.

I think this is a duplicate of #5477.

@Mamaduka Mamaduka added [Feature] Document Settings Document settings experience [Feature] Media Anything that impacts the experience of managing media [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed labels May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Document Settings Document settings experience [Feature] Media Anything that impacts the experience of managing media [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed
Projects
None yet
Development

No branches or pull requests

2 participants