Changeset 37483
- Timestamp:
- 05/22/2016 05:09:16 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/media.php
r37342 r37483 264 264 * @since 2.5.0 265 265 * 266 * @param string $file_id Index of the {@link $_FILES}array 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. 269 269 * @param array $post_data Overwrite some of the attachment. Optional. 270 * @param array $overrides Override the {@link wp_handle_upload()}behavior. Optional.270 * @param array $overrides Override the wp_handle_upload() behavior. Optional. 271 271 * @return int|WP_Error ID of the attachment or a WP_Error object on failure. 272 272 */ … … 381 381 382 382 /** 383 * This handles a sideloaded file in the same way as an uploaded file is handled by {@link media_handle_upload()}383 * Handles a side-loaded file in the same way as an uploaded file is handled by media_handle_upload(). 384 384 * 385 385 * @since 2.6.0 386 386 * 387 * @param array $file_array Array similar to a {@link $_FILES}upload array387 * @param array $file_array Array similar to a $_FILES upload array 388 388 * @param int $post_id The post ID the media is associated with 389 389 * @param string $desc Description of the sideloaded file … … 391 391 * @return int|object The ID of the attachment or a WP_Error on failure 392 392 */ 393 function media_handle_sideload( $file_array, $post_id, $desc = null, $post_data = array()) {393 function media_handle_sideload( $file_array, $post_id, $desc = null, $post_data = array() ) { 394 394 $overrides = array('test_form'=>false); 395 395
Note: See TracChangeset
for help on using the changeset viewer.