Changeset 32350
- Timestamp:
- 05/05/2015 02:15:27 AM (11 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
-
wp-admin/includes/media.php (modified) (1 diff)
-
wp-includes/post.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/media.php
r32341 r32350 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 831 832 * @param string $desc Optional. Description of the image 832 * @param string $return Optional. What to return: an image tag (default) or only the src.833 * @param string $return Optional. Accepts 'html' (image tag html) or 'src' (URL). Default 'html'. 833 834 * @return string|WP_Error Populated HTML img tag on success 834 835 */ -
trunk/src/wp-includes/post.php
r32342 r32350 5133 5133 * 5134 5134 * @since 2.1.0 5135 * @since 4.2.0 Modified into wrapper for wp_attachment_is() 5135 * @since 4.2.0 Modified into wrapper for wp_attachment_is() and 5136 * allowed WP_Post object to be passed. 5136 5137 * 5137 5138 * @param int|WP_Post $post Optional. Attachment ID. Default 0.
Note: See TracChangeset
for help on using the changeset viewer.