: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
// The high field of the timestamp multiplexed with the version number
$buffer[6] = ( $buffer[6] & 0x0f ) | 0x40;
// The high field of the clock sequence multiplexed with the variant
$buffer[8] = ( $buffer[8] & 0x3f ) | 0x80;
'%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x',
// Clock seq hi and reserved
function et_core_data_utils_minify_css( $string = '' ) {
# don't change anything inside of quotes
( "(?:[^"\\\]++|\\\.)*+" | '(?:[^'\\\]++|\\\.)*+' )
$everything_else = <<< EOS
# don't change anything inside of quotes
( "(?:[^"\\\]++|\\\.)*+" | '(?:[^'\\\]++|\\\.)*+' )
# spaces before and after ; and }
# all spaces around meta chars/operators (excluding + and -)
\s*+ ( [*$~^|]?+= | [{};,>~] | !important\b ) \s*+
# all spaces around + and - (in selectors only!)
# spaces left (and right) of : (but not in selectors)!
# spaces at beginning/end of string
# double spaces to single
$search_patterns = array( "%{$comments}%", "%{$everything_else}%" );
$replace_patterns = array( '$1', '$1$2$3$4$5$6$7$8' );
return preg_replace( $search_patterns, $replace_patterns, $string );