Changeset 31109
- Timestamp:
- 01/09/2015 05:04:59 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/media.php
r31090 r31109 248 248 249 249 /** 250 * This handles the file upload POST itself, creating the attachment post.250 * Save a file submitted from a POST request and create an attachment post for it. 251 251 * 252 252 * @since 2.5.0 253 253 * 254 * @param string $file_id Index into the {@link $_FILES} array of the upload 255 * @param int $post_id The post ID the media is associated with 256 * @param array $post_data allows you to overwrite some of the attachment 257 * @param array $overrides allows you to override the {@link wp_handle_upload()} behavior 254 * @param string $file_id Index of the {@link $_FILES} array that the file was sent. Required. 255 * @param int $post_id The post ID of a post to attach the media item to. Required, but can 256 * be set to 0, creating a media item that has no relationship to a post. 257 * @param array $post_data Overwrite some of the attachment. Optional. 258 * @param array $overrides Override the {@link wp_handle_upload()} behavior. Optional. 258 259 * @return int|WP_Error ID of the attachment or a WP_Error object on failure. 259 260 */
Note: See TracChangeset
for help on using the changeset viewer.