Skip to content

Commit

Permalink
Merge pull request #82 from Automattic/rm/ie6
Browse files Browse the repository at this point in the history
Remove IE6 compatibility
  • Loading branch information
rinatkhaziev authored Jan 22, 2025
2 parents d32c7be + 594f1d7 commit c4b3324
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions ngx-http-concat.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,6 @@ function concat_get_path( $uri ) {
// url(relative/path/to/file) -> url(/absolute/and/not/relative/path/to/file)
$buf = WPCOM_Concat_Utils::relative_path_replace( $buf, $dirpath );

// AlphaImageLoader(...src='relative/path/to/file'...) -> AlphaImageLoader(...src='/absolute/path/to/file'...)
$buf = preg_replace(
'/(Microsoft.AlphaImageLoader\s*\([^\)]*src=(?:\'|")?)([^\/\'"\s\)](?:(?<!http:|https:).)*)\)/isU',
'$1' . ( $dirpath == '/' ? '/' : $dirpath . '/' ) . '$2)',
$buf
);

// The @charset rules must be on top of the output
if ( 0 === strpos( $buf, '@charset' ) ) {
preg_replace_callback(
Expand Down

0 comments on commit c4b3324

Please sign in to comment.