[wp-trac] [WordPress Trac] #54243: Inlined block styles that involve external assets (images/fonts) and relative URL's not working as expected
WordPress Trac
noreply at wordpress.org
Mon Nov 8 13:23:57 UTC 2021
#54243: Inlined block styles that involve external assets (images/fonts) and
relative URL's not working as expected
----------------------------------------+------------------------------
Reporter: cdyerkes | Owner: gziolo
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.9
Component: Editor | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch has-testing-info | Focuses: javascript, css
----------------------------------------+------------------------------
Changes (by gziolo):
* owner: (none) => gziolo
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"52036" 52036]:
{{{
#!CommitTicketReference repository="" revision="52036"
Fix relative URLs in inlined block styles that involve external assets
When styles got inlined, relative URLs break. The problem was that URLs
inside CSS files are relative to the stylesheet's path, and when styles
get inlined that relation is lost. This patch fixes the issue by finding
relative URLs which then get modified to be relative to the site's root.
Fixes #54243.
Props aristath, cdyerkes, hellofromtonya.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54243#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list