From 1d6fff7f664729e638100643e19b3905d274dc11 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sun, 22 May 2016 17:17:11 +0000 Subject: [PATCH] Docs: Fix some parameter alignment and backtick-escaping in two DocBlocks in wp-admin/includes/media.php. See #32246. git-svn-id: https://develop.svn.wordpress.org/trunk@37484 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/media.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/wp-admin/includes/media.php b/src/wp-admin/includes/media.php index 75ec0d144b..5ee92e7ba9 100644 --- a/src/wp-admin/includes/media.php +++ b/src/wp-admin/includes/media.php @@ -263,7 +263,7 @@ win.send_to_editor( ); * * @since 2.5.0 * - * @param string $file_id Index of the $_FILES array that the file was sent. Required. + * @param string $file_id Index of the `$_FILES` array that the file was sent. Required. * @param int $post_id The post ID of a post to attach the media item to. Required, but can * be set to 0, creating a media item that has no relationship to a post. * @param array $post_data Overwrite some of the attachment. Optional. @@ -384,11 +384,11 @@ function media_handle_upload($file_id, $post_id, $post_data = array(), $override * * @since 2.6.0 * - * @param array $file_array Array similar to a $_FILES upload array - * @param int $post_id The post ID the media is associated with - * @param string $desc Description of the sideloaded file - * @param array $post_data allows you to overwrite some of the attachment - * @return int|object The ID of the attachment or a WP_Error on failure + * @param array $file_array Array similar to a `$_FILES` upload array. + * @param int $post_id The post ID the media is associated with. + * @param string $desc Optional. Description of the side-loaded file. Default null. + * @param array $post_data Optional. Post data to override. Default empty array. + * @return int|object The ID of the attachment or a WP_Error on failure. */ function media_handle_sideload( $file_array, $post_id, $desc = null, $post_data = array() ) { $overrides = array('test_form'=>false);