WordPress.org

Make WordPress Core

Ticket #39821: 39821.diff

File 39821.diff, 479 bytes (added by aaroncampbell, 3 years ago)
  • src/wp-includes/post.php

     
    57595759
    57605760        switch ( $type ) {
    57615761                case 'image':
    5762                         $image_exts = array( 'jpg', 'jpeg', 'jpe', 'gif', 'png' );
     5762                        $image_exts = apply_filters( 'wp_image_extensions', array( 'jpg', 'jpeg', 'jpe', 'gif', 'png' ) );
    57635763                        return in_array( $ext, $image_exts );
    57645764
    57655765                case 'audio':