mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
Upload: Introduce the {$action}_overrides filter that allows the overrides parameter for file uploads and file sideloads to be filtered.
The dynamic portion of the hook name, `$action`, refers to the post action. Props iandunn, jakub.tyrcha, nacin, wonderboymusic, Mte90, johnbillion Fixes #16849 git-svn-id: https://develop.svn.wordpress.org/trunk@49845 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2791,7 +2791,7 @@ function wp_ext2type( $ext ) {
|
||||
* @since 2.0.4
|
||||
*
|
||||
* @param string $filename File name or path.
|
||||
* @param string[] $mimes Optional. Array of mime types keyed by their file extension regex.
|
||||
* @param string[] $mimes Optional. Array of allowed mime types keyed by their file extension regex.
|
||||
* @return array {
|
||||
* Values for the extension and mime type.
|
||||
*
|
||||
@@ -2833,7 +2833,7 @@ function wp_check_filetype( $filename, $mimes = null ) {
|
||||
* @param string $file Full path to the file.
|
||||
* @param string $filename The name of the file (may differ from $file due to $file being
|
||||
* in a tmp directory).
|
||||
* @param string[] $mimes Optional. Array of mime types keyed by their file extension regex.
|
||||
* @param string[] $mimes Optional. Array of allowed mime types keyed by their file extension regex.
|
||||
* @return array {
|
||||
* Values for the extension, mime type, and corrected filename.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user