[wp-trac] [WordPress Trac] #61909: Script Loader: Do not normalize absolute-paths in `_wp_normalize_relative_css_links()`.

WordPress Trac noreply at wordpress.org
Sun Aug 25 22:47:00 UTC 2024


#61909: Script Loader: Do not normalize absolute-paths in
`_wp_normalize_relative_css_links()`.
--------------------------------------+-----------------------------
 Reporter:  scholdstrom               |       Owner:  SergeyBiryukov
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  6.7
Component:  Script Loader             |     Version:  trunk
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:  css
--------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"58932" 58932]:
 {{{
 #!CommitTicketReference repository="" revision="58932"
 Script Loader: Do not normalize absolute paths in inline block styles CSS.

 `_wp_normalize_relative_css_links()` used to normalize all non-absolute
 URLs regardless of whether it's a relative path or an absolute path. The
 normalization should only happen for relative paths (paths without a
 leading `/`) and not for absolute paths.

 Reference: [https://www.rfc-editor.org/rfc/rfc1808#section-4 RFC 1808,
 Section 4, Step 4].

 Follow-up to [52036], [52695], [52754], [55658], [55669].

 Props scholdstrom.
 Fixes #61909.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61909#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list