10up / safe-svg

Enable SVG uploads and sanitize them to stop XML/SVG vulnerabilities in your WordPress website.
https://wordpress.org/plugins/safe-svg/
GNU General Public License v2.0
272 stars 31 forks source link

Class not applied to Safe SVG Icon block in front end #126

Closed ooksanen closed 1 year ago

ooksanen commented 1 year ago

Describe the bug

Custom classes applied are not saved for front end in Safe SVG Icon block. Works properly in editor.

Steps to Reproduce

  1. Insert Safe SVG Icon block
  2. Apply a custom class to block
  3. Save page / post
  4. In front end no custom classes are present

Screenshots, screen recording, code snippet

Editor, block has .large-text-center correctly applied:

image

Front end, custom class is not present:

image

Environment information

No response

WordPress information

No response

Code of Conduct