-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Media: URL encode spaces in
srcset
attributes.
In some cases, images in the media library may contain spaces in their filenames. This results in an invalid `srcset` attribute, causing broken images on the front end. This change fixes the issue by replacing spaces in URLs with URL encoded '%20' characters before returning the `srcset` string. Props underdude, joemcgill. Fixes #36549. Built from https://develop.svn.wordpress.org/trunk@38052 git-svn-id: http://core.svn.wordpress.org/trunk@37993 1a063a9b-81f0-0310-95a4-ce76da25c4cd
- Loading branch information
Showing
2 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters