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

WordPress Trac noreply at wordpress.org
Wed Feb 2 04:38:06 UTC 2022


#54922: Normalizing CSS also catches CSS IDs instead of only URLs
---------------------------+---------------------
 Reporter:  mahype         |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  5.9.1
Component:  Script Loader  |     Version:  5.9
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:
---------------------------+---------------------

Comment (by costdev):

 == Test Report

 === Env
 * Web Server: Apache
 * WordPress: 6.0-alpha-52448-src
 * Browser: Chrome
 * OS: Linux
 * Theme: Twenty Twenty-Two
 * Plugins: None activated

 === Steps to test
 1. Make the following call:
 {{{#!php
 echo _wp_normalize_relative_css_links( 'clip-path: url(#image1);',
 get_stylesheet_uri() );
 }}}

 === Results
 - Expected: `clip-path: url(#image1);`
 - Actual: `clip-path: url(/wordpress-develop/src/wp-
 content/themes/twentytwentytwo/#image1);`
 - **Reproduced** ✅ Expected and actual do not match.

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


More information about the wp-trac mailing list