Inline SVG stripped when pulling from Flywheel

What issue or error are you experiencing?

Inline SVGs injected via PHP are being removed when pulling the site down from Flywheel. Only a blank space remains in their place.

What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc

Here’s the affected PHP code:

<?php $theme_uri = get_bloginfo('template_directory'); $url = $theme_uri . '/assets/images/logo-primary.svg'; $request = wp_remote_get($url); $retrieve = wp_remote_retrieve_body($request); echo $retrieve; ?>

System Details

  • Local Version: Version 8.3.1+6650

  • Operating System (OS) and OS version: Mac OS Sonoma 14.3.1 (23D60)

Local Logs

Attach your Local Logs here (Help Doc - Retrieving Local’s Log) (1.1 MB)

Security Reminder
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

Hi @micahash

Does the same thing happen when importing a backup instead of using Local Connect?