Make WordPress Core

Ticket #50505: 50505.diff

File 50505.diff, 1.0 KB (added by stevenlinx, 6 years ago)
  • src/wp-includes/post.php

    diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php
    index b5eff61a06..2e04a39087 100644
    a b function wp_delete_attachment_files( $post_id, $meta, $backup_sizes, $file ) {  
    58545854 *
    58555855 * @param int  $attachment_id Attachment post ID. Defaults to global $post.
    58565856 * @param bool $unfiltered    Optional. If true, filters are not run. Default false.
    5857  * @return mixed Attachment meta field. False on failure.
     5857 * @return (array|boolean) {
     5858 *     Attachment meta field. False on failure.
     5859 *
     5860 *     @type integer $width    The height of the attachment
     5861 *     @type integer $height   The width of the attachment.
     5862 *     @type string $file      The file path relative to `wp-content/uploads/`
     5863 *     @type array $sizes      Keys are size slugs, each value is an array containing 'file', 'width', 'height', and 'mime-type'
     5864 *     @type array $image_meta
     5865 * }
    58585866 */
    58595867function wp_get_attachment_metadata( $attachment_id = 0, $unfiltered = false ) {
    58605868        $attachment_id = (int) $attachment_id;