Extending sanitize_file_name() for .min.css and .min.js
The WordPress function sanitize_file_name() is a good way for WordPress developers to, well, sanitize a filename. It’s, probably, the preferred way of sanitizing filenames in the WordPress ecosystem. The function …