Skip to content

Restored svg menu icon size and styles#334

Merged
vytisbulkevicius merged 1 commit intodevelopmentfrom
bugfix/333
Apr 23, 2026
Merged

Restored svg menu icon size and styles#334
vytisbulkevicius merged 1 commit intodevelopmentfrom
bugfix/333

Conversation

@girishpanchal30
Copy link
Copy Markdown
Contributor

Summary

Escaped the width and height of the SVG icon.

Check before Pull Request is ready:

Closes #333

@pirate-bot
Copy link
Copy Markdown
Contributor

Plugin build for 1470a7c is ready 🛎️!

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses a regression where SVG menu icons selected via Image → Media Library render too small due to incorrect escaping of pre-built HTML attribute strings in get_svg_icon().

Changes:

  • Escapes SVG-derived width/height values at the point they are inserted into the attribute string (rather than escaping the entire attribute fragment).
  • Stops escaping $width, $height, and $style as whole attribute strings when building the final <img> markup, restoring correct width/height/style output.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@vytisbulkevicius vytisbulkevicius merged commit 9678fa6 into development Apr 23, 2026
13 checks passed
@vytisbulkevicius vytisbulkevicius deleted the bugfix/333 branch April 23, 2026 11:22
@pirate-bot
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.13.23 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@pirate-bot pirate-bot added the released Indicate that an issue has been resolved and released in a particular version of the product. label Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-checklist-complete The Pull Request checklist is complete. (automatic label) pr-checklist-skip Allow this Pull Request to skip checklist. released Indicate that an issue has been resolved and released in a particular version of the product.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SVG menu icons render too small after v0.13.21 update (width/height and style attributes broken)

5 participants