diff --git a/package-lock.json b/package-lock.json
index b8cccede79..500efed6b1 100644
|
a
|
b
|
|
| 3922 | 3922 | "tar-fs": "^2.0.0", |
| 3923 | 3923 | "unbzip2-stream": "^1.3.3", |
| 3924 | 3924 | "ws": "^7.2.3" |
| | 3925 | }, |
| | 3926 | "dependencies": { |
| | 3927 | "devtools-protocol": { |
| | 3928 | "version": "0.0.818844", |
| | 3929 | "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.818844.tgz", |
| | 3930 | "integrity": "sha512-AD1hi7iVJ8OD0aMLQU5VK0XH9LDlA1+BcPIgrAxPfaibx2DbWucuyOhc4oyQCbnvDDO68nN6/LcKfqTP343Jjg==", |
| | 3931 | "dev": true |
| | 3932 | } |
| 3925 | 3933 | } |
| 3926 | 3934 | }, |
| 3927 | 3935 | "rimraf": { |
| … |
… |
|
| 5631 | 5639 | "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==", |
| 5632 | 5640 | "dev": true |
| 5633 | 5641 | }, |
| 5634 | | "browser-resolve": { |
| 5635 | | "version": "1.11.3", |
| 5636 | | "resolved": "https://registry.npmjs.org/browser-resolve/-/browser-resolve-1.11.3.tgz", |
| 5637 | | "integrity": "sha512-exDi1BYWB/6raKHmDTCicQfTkqwN5fioMFV4j8BsfMU4R2DK/QfZfK7kOVkmWCNANf0snkBzqGqAJBao9gZMdQ==", |
| 5638 | | "dev": true, |
| 5639 | | "requires": { |
| 5640 | | "resolve": "1.1.7" |
| 5641 | | }, |
| 5642 | | "dependencies": { |
| 5643 | | "resolve": { |
| 5644 | | "version": "1.1.7", |
| 5645 | | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz", |
| 5646 | | "integrity": "sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs=", |
| 5647 | | "dev": true |
| 5648 | | } |
| 5649 | | } |
| 5650 | | }, |
| 5651 | 5642 | "browserify-aes": { |
| 5652 | 5643 | "version": "1.2.0", |
| 5653 | | "resolved": "http://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", |
| | 5644 | "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", |
| 5654 | 5645 | "integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==", |
| 5655 | 5646 | "dev": true, |
| 5656 | 5647 | "requires": { |
| … |
… |
|
| 7959 | 7950 | "integrity": "sha512-ZIzRpLJrOj7jjP2miAtgqIfmzbxa4ZOr5jJc601zklsfEx9oTzmmj2nVpIPRpNlRTIh8lc1kyViIY7BWSGNmKw==", |
| 7960 | 7951 | "dev": true |
| 7961 | 7952 | }, |
| 7962 | | "devtools-protocol": { |
| 7963 | | "version": "0.0.818844", |
| 7964 | | "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.818844.tgz", |
| 7965 | | "integrity": "sha512-AD1hi7iVJ8OD0aMLQU5VK0XH9LDlA1+BcPIgrAxPfaibx2DbWucuyOhc4oyQCbnvDDO68nN6/LcKfqTP343Jjg==", |
| 7966 | | "dev": true |
| 7967 | | }, |
| 7968 | 7953 | "diff": { |
| 7969 | 7954 | "version": "4.0.2", |
| 7970 | 7955 | "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", |
| … |
… |
|
| 11368 | 11353 | "dev": true, |
| 11369 | 11354 | "requires": { |
| 11370 | 11355 | "duplexer": "^0.1.2" |
| | 11356 | }, |
| | 11357 | "dependencies": { |
| | 11358 | "duplexer": { |
| | 11359 | "version": "0.1.2", |
| | 11360 | "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", |
| | 11361 | "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==", |
| | 11362 | "dev": true |
| | 11363 | } |
| 11371 | 11364 | } |
| 11372 | 11365 | }, |
| 11373 | 11366 | "handle-thing": { |
diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php
index 536f195b14..3e1866330c 100644
|
a
|
b
|
function wp_get_mime_types() { |
| 3142 | 3142 | 'class' => 'application/java', |
| 3143 | 3143 | 'tar' => 'application/x-tar', |
| 3144 | 3144 | 'zip' => 'application/zip', |
| 3145 | | 'gz|gzip' => 'application/x-gzip', |
| | 3145 | 'gz|gzip|tgz' => 'application/gzip', |
| 3146 | 3146 | 'rar' => 'application/rar', |
| 3147 | 3147 | '7z' => 'application/x-7z-compressed', |
| 3148 | 3148 | 'exe' => 'application/x-msdownload', |
diff --git a/tests/phpunit/tests/formatting/SanitizeMimeType.php b/tests/phpunit/tests/formatting/SanitizeMimeType.php
index 45c8ec611f..5d58742c7e 100644
|
a
|
b
|
class Tests_Formatting_SanitizeMimeType extends WP_UnitTestCase { |
| 25 | 25 | 'application/xml-dtd', |
| 26 | 26 | 'application/xop+xml', |
| 27 | 27 | 'application/zip', |
| 28 | | 'application/x-gzip', |
| | 28 | 'application/gzip', |
| 29 | 29 | 'audio/basic', |
| 30 | 30 | 'image/jpeg', |
| 31 | 31 | 'text/css', |