Skip to content

Keep SVG URLs remote during export#855

Open
MaggieCabrera wants to merge 1 commit into
trunkfrom
codex/fix-svg-media-localization
Open

Keep SVG URLs remote during export#855
MaggieCabrera wants to merge 1 commit into
trunkfrom
codex/fix-svg-media-localization

Conversation

@MaggieCabrera

Copy link
Copy Markdown
Contributor

Summary

Updates media export so SVG URLs found in templates and patterns are left at their original URL instead of being copied into the generated theme assets. Raster images and supported video files continue to be localized as before.

This aligns the plugin with WordPress core’s handling of SVGs: themes can still include their own SVG assets, but SVG files from content/media URLs are not treated like ordinary localizable image uploads by default.

Test plan

  • npm run test:unit:php:base -- --filter 'Test_Create_Block_Theme_Media|Test_Create_Block_Theme_Zip'
  • vendor/bin/phpcs --standard=phpcs.xml.dist includes/create-theme/theme-media.php tests/test-theme-media.php tests/test-theme-zip.php

@MaggieCabrera MaggieCabrera requested a review from scruffian June 23, 2026 09:52
@MaggieCabrera MaggieCabrera self-assigned this Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant