WordPress.org

Make WordPress Core

Changeset 32264


Ignore:
Timestamp:
04/22/2015 04:10:40 PM (5 years ago)
Author:
ocean90
Message:

Don't return empty themes in wp_prepare_themes_for_js().

see #32002.

File:
1 edited

Legend:

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

    r32246 r32264  
    503503     */
    504504    $prepared_themes = apply_filters( 'wp_prepare_themes_for_js', $prepared_themes );
    505     return array_values( $prepared_themes );
     505    $prepared_themes = array_values( $prepared_themes );
     506    return array_filter( $prepared_themes );
    506507}
    507508
Note: See TracChangeset for help on using the changeset viewer.