Make WordPress Core

Ticket #59698: 59698.2.diff

File 59698.2.diff, 797 bytes (added by joedolson, 2 years ago)

Updates return docs as requested in PR

  • src/wp-includes/post.php

     
    66656665 *
    66666666 * @since 4.2.0
    66676667 *
    6668  * @param string      $type Attachment type. Accepts 'image', 'audio', or 'video'.
     6668 * @param string      $type The type of attachment to check. Valid values are `image`, `audio`, `video`, or a file extension.
    66696669 * @param int|WP_Post $post Optional. Attachment ID or object. Default is global $post.
    6670  * @return bool True if one of the accepted types, false otherwise.
     6670 * @return bool True if an accepted type or a matching file extension, false otherwise.
    66716671 */
    66726672function wp_attachment_is( $type, $post = null ) {
    66736673        $post = get_post( $post );