WordPress.org

Make WordPress Core

Changeset 37484


Ignore:
Timestamp:
05/22/2016 05:17:11 PM (4 years ago)
Author:
DrewAPicture
Message:

Docs: Fix some parameter alignment and backtick-escaping in two DocBlocks in wp-admin/includes/media.php.

See #32246.

File:
1 edited

Legend:

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

    r37483 r37484  
    264264 * @since 2.5.0
    265265 *
    266  * @param string $file_id   Index of the $_FILES array that the file was sent. Required.
     266 * @param string $file_id   Index of the `$_FILES` array that the file was sent. Required.
    267267 * @param int    $post_id   The post ID of a post to attach the media item to. Required, but can
    268268 *                          be set to 0, creating a media item that has no relationship to a post.
     
    385385 * @since 2.6.0
    386386 *
    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 Description of the sideloaded file
    390  * @param array $post_data allows you to overwrite some of the attachment
    391  * @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.
    392392 */
    393393function media_handle_sideload( $file_array, $post_id, $desc = null, $post_data = array() ) {
Note: See TracChangeset for help on using the changeset viewer.