[wp-trac] [WordPress Trac] #54922: Normalizing CSS also catches CSS IDs instead of only URLs

WordPress Trac noreply at wordpress.org
Tue Feb 8 23:39:45 UTC 2022


#54922: Normalizing CSS also catches CSS IDs instead of only URLs
-------------------------------------------------+-------------------------
 Reporter:  mahype                               |       Owner:  audrasjb
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  5.9.1
Component:  Script Loader                        |     Version:  5.9
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests has-        |     Focuses:
  testing-info commit                            |
-------------------------------------------------+-------------------------
Changes (by audrasjb):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"52695" 52695]:
 {{{
 #!CommitTicketReference repository="" revision="52695"
 Script Loader: Prevent normalizing HTML IDs in
 `_wp_normalize_relative_css_links()`.

 This change fixes an issue where `_wp_normalize_relative_css_links()` was
 not only matching urls, but also HTML IDs.

 Follow-up to [52036].

 Props mahype, costdev, audrasjb, SergeyBiryukov.
 Fixes #54922.
 }}}

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


More information about the wp-trac mailing list