Make WordPress Core

Changeset 31646


Ignore:
Timestamp:
03/06/2015 08:27:49 PM (9 years ago)
Author:
wonderboymusic
Message:

After [31645], for the default case, return the result of checking the extension against the passed type.

See #25275.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post.php

    r31645 r31646  
    51075107    case 'video':
    51085108        return in_array( $ext, wp_get_video_extensions() );
    5109     }
    5110 
    5111     return false;
     5109
     5110    default:
     5111        return $type === $ext;
     5112    }
    51125113}
    51135114
Note: See TracChangeset for help on using the changeset viewer.