Ticket #31925: 31925.patch
File 31925.patch, 1.6 KB (added by , 6 years ago) |
---|
-
wp-admin/includes/media.php
825 825 * Download an image from the specified URL and attach it to a post. 826 826 * 827 827 * @since 2.6.0 828 * @since 4.2.0 Introduced the `$return` parameter. 828 829 * 829 830 * @param string $file The URL of the image to download 830 831 * @param int $post_id The post ID the media is to be associated with -
wp-includes/post.php
5135 5135 * Checks if the attachment is an image. 5136 5136 * 5137 5137 * @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. 5139 5140 * 5140 5141 * @param int|WP_Post $post Optional. Attachment ID. Default 0. 5141 5142 * @return bool Whether the attachment is an image. -
wp-includes/taxonomy.php
4653 4653 * Filter a given object's ancestors. 4654 4654 * 4655 4655 * @since 3.1.0 4656 * @since 4.1. 0Introduced the `$resource_type` parameter.4656 * @since 4.1.1 Introduced the `$resource_type` parameter. 4657 4657 * 4658 4658 * @param array $ancestors An array of object ancestors. 4659 4659 * @param int $object_id Object ID.