mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 07:36:58 +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:
@@ -430,7 +430,7 @@ function media_handle_upload( $file_id, $post_id, $post_data = array(), $overrid
|
||||
* @since 2.6.0
|
||||
* @since 5.3.0 The `$post_id` parameter was made optional.
|
||||
*
|
||||
* @param array $file_array Array similar to a `$_FILES` upload array.
|
||||
* @param array $file_array Array that represents a `$_FILES` upload array.
|
||||
* @param int $post_id Optional. The post ID the media is associated with.
|
||||
* @param string $desc Optional. Description of the side-loaded file. Default null.
|
||||
* @param array $post_data Optional. Post data to override. Default empty array.
|
||||
|
||||
Reference in New Issue
Block a user