WordPress.org

Make WordPress Core

Ticket #25879: 25879-2.patch

File 25879-2.patch, 526 bytes (added by meloniq, 8 years ago)

Adds 'page_template_dropdown' filter (without selected() and docs changes)

  • wp-admin/includes/template.php

     
    700700 */
    701701function page_template_dropdown( $default = '' ) {
    702702        $templates = get_page_templates();
     703        $templates = apply_filters( 'page_template_dropdown', $templates, $default );
    703704        ksort( $templates );
    704705        foreach (array_keys( $templates ) as $template )
    705706                : if ( $default == $templates[$template] )