Changeset 58932
- Timestamp:
- 08/25/2024 10:46:43 PM (3 weeks ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/script-loader.php
r58931 r58932 3057 3057 str_starts_with( $url, 'http:' ) || 3058 3058 str_starts_with( $url, 'https:' ) || 3059 str_starts_with( $url, '/ /' ) ||3059 str_starts_with( $url, '/' ) || 3060 3060 str_starts_with( $url, '#' ) || 3061 3061 str_starts_with( $url, 'data:' ) -
trunk/tests/phpunit/tests/dependencies/styles.php
r57987 r58932 229 229 'expected' => 'p {background-image: url(\'/wp-content/themes/test/../image1.jpg\');}', 230 230 ), 231 'URLs with absolute path, shouldn\'t change' => array( 232 'css' => 'p {background:url( "/image0.svg" );}', 233 'expected' => 'p {background:url( "/image0.svg" );}', 234 ), 231 235 'External URLs, shouldn\'t change' => array( 232 236 'css' => 'p {background-image: url(\'http://foo.com/image2.png\');}',
Note: See TracChangeset
for help on using the changeset viewer.