WordPress.org

Make WordPress Core

Ticket #31925: 31925.patch

File 31925.patch, 1.6 KB (added by dimadin, 4 years ago)
  • wp-admin/includes/media.php

     
    825825 * Download an image from the specified URL and attach it to a post.
    826826 *
    827827 * @since 2.6.0
     828 * @since 4.2.0 Introduced the `$return` parameter.
    828829 *
    829830 * @param string $file The URL of the image to download
    830831 * @param int $post_id The post ID the media is to be associated with
  • wp-includes/post.php

     
    51355135 * Checks if the attachment is an image.
    51365136 *
    51375137 * @since 2.1.0
    5138  * @since 4.2.0 Modified into wrapper for wp_attachment_is()
     5138 * @since 4.2.0 Modified into wrapper for wp_attachment_is() and
     5139 *              allowed WP_Post object to be passed.
    51395140 *
    51405141 * @param int|WP_Post $post Optional. Attachment ID. Default 0.
    51415142 * @return bool Whether the attachment is an image.
  • wp-includes/taxonomy.php

     
    46534653         * Filter a given object's ancestors.
    46544654         *
    46554655         * @since 3.1.0
    4656          * @since 4.1.0 Introduced the `$resource_type` parameter.
     4656         * @since 4.1.1 Introduced the `$resource_type` parameter.
    46574657         *
    46584658         * @param array  $ancestors     An array of object ancestors.
    46594659         * @param int    $object_id     Object ID.