Make WordPress Core


Ignore:
Timestamp:
12/04/2013 07:20:10 PM (11 years ago)
Author:
nacin
Message:

Add wp_prepare_themes_for_js filter to wp_prepare_themes_for_js().

props kovshenin.
fixes #25948.

File:
1 edited

Legend:

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

    r26529 r26625  
    425425    }
    426426
    427     return $prepared_themes;
    428 }
     427    /**
     428     * Filter the themes prepared for JavaScript, for themes.php.
     429     *
     430     * Could be useful for changing the order, which is by name by default.
     431     *
     432     * @since 3.8.0
     433     *
     434     * @param array $prepared_themes Array of themes.
     435     */
     436    return apply_filters( 'wp_prepare_themes_for_js', $prepared_themes );
     437}
Note: See TracChangeset for help on using the changeset viewer.