Make WordPress Core

Ticket #37444: 37444a.patch

File 37444a.patch, 506 bytes (added by achbed, 8 years ago)
  • wp-includes/template.php

     
    9090 * @return string Full path to archive template file.
    9191 */
    9292function get_archive_template() {
    93         $post_types = array_filter( (array) get_query_var( 'post_type' ) );
     93  $post_types = (array) get_query_var( 'post_type' );
     94        $post_types = array_filter( $post_types );
    9495
    9596        $templates = array();
    9697