Changeset 31659
- Timestamp:
- 03/07/2015 07:08:52 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r31653 r31659 5072 5072 5073 5073 /** 5074 * Ver fify the attachment as being of a specific type5075 * 5076 * @param string $type Type: image, audio, or video.5077 * @param int|WP_Post $post_id Optional. Default 0.5078 * @return bool 5074 * Verifies an attachment is of a given type. 5075 * 5076 * @param string $type Attachment type. Accepts 'image', 'audio', or 'video'. 5077 * @param int|WP_Post $post_id Optional. Attachment ID. Default 0. 5078 * @return bool True if one of the accepted types, false otherwise. 5079 5079 */ 5080 5080 function wp_attachment_is( $type, $post_id = 0 ) { … … 5119 5119 5120 5120 /** 5121 * Check if the attachment is an image.5121 * Checks if the attachment is an image. 5122 5122 * 5123 5123 * @since 2.1.0 5124 * @since 4.2.0 Modified into wrapper for wp_attachment_is() 5124 5125 * 5125 5126 * @param int|WP_Post $post Optional. Attachment ID. Default 0.
Note: See TracChangeset
for help on using the changeset viewer.