protected function update_unit_pattern( array $units ) {
		// Update unit regex pattern.
		foreach ( $units as $index => $unit ) {
			$units[ $index ] = \preg_quote( $unit, '/' );
		}

		$custom_units  = \implode( '|', $units );
		$custom_units .= ! empty( $custom_units ) ? '|' : '';

		return $custom_units;
	}
protected function update_unit_pattern( array $units ) {
		// Update unit regex pattern.
		foreach ( $units as $index => $unit ) {
			$units[ $index ] = \preg_quote( $unit, '/' );
		}

		$custom_units  = \implode( '|', $units );
		$custom_units .= ! empty( $custom_units ) ? '|' : '';

		return $custom_units;
	}
protected function update_unit_pattern ( array $ units ) { // Update unit regex pattern. foreach ( $ units as $ index => $ unit ) { $ units [ $ index ] = \ preg_quote ( $ unit , '/' ) ; } $ custom_units = \ implode ( '|' , $ units ) ; $ custom_units .= ! empty ( $ custom_units ) ? '|' : '' ; return $ custom_units ; }
Update pattern for matching custom units.

@since 6.4.0 Visibility changed to protected, return value added.

@param array $units An array of unit names.

@return string
Update pattern for matching custom units .