Changeset 37484
- Timestamp:
- 05/22/2016 05:17:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/media.php
r37483 r37484 264 264 * @since 2.5.0 265 265 * 266 * @param string $file_id Index of the $_FILESarray that the file was sent. Required.266 * @param string $file_id Index of the `$_FILES` array that the file was sent. Required. 267 267 * @param int $post_id The post ID of a post to attach the media item to. Required, but can 268 268 * be set to 0, creating a media item that has no relationship to a post. … … 385 385 * @since 2.6.0 386 386 * 387 * @param array $file_array Array similar to a $_FILES upload array388 * @param int $post_id The post ID the media is associated with389 * @param string $desc Description of the sideloaded file390 * @param array $post_data allows you to overwrite some of the attachment391 * @return int|object The ID of the attachment or a WP_Error on failure 387 * @param array $file_array Array similar to a `$_FILES` upload array. 388 * @param int $post_id The post ID the media is associated with. 389 * @param string $desc Optional. Description of the side-loaded file. Default null. 390 * @param array $post_data Optional. Post data to override. Default empty array. 391 * @return int|object The ID of the attachment or a WP_Error on failure. 392 392 */ 393 393 function media_handle_sideload( $file_array, $post_id, $desc = null, $post_data = array() ) {
Note: See TracChangeset
for help on using the changeset viewer.