Make WordPress Core


Ignore:
Timestamp:
12/20/2020 04:13:23 PM (4 years ago)
Author:
johnbillion
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/media.php

    r49384 r49845  
    431431 * @since 5.3.0 The `$post_id` parameter was made optional.
    432432 *
    433  * @param array  $file_array Array similar to a `$_FILES` upload array.
     433 * @param array  $file_array Array that represents a `$_FILES` upload array.
    434434 * @param int    $post_id    Optional. The post ID the media is associated with.
    435435 * @param string $desc       Optional. Description of the side-loaded file. Default null.
Note: See TracChangeset for help on using the changeset viewer.