Ticket #25879: 25879-3.patch
| File 25879-3.patch, 760 bytes (added by , 12 years ago) |
|---|
-
wp-admin/includes/template.php
700 700 */ 701 701 function page_template_dropdown( $default = '' ) { 702 702 $templates = get_page_templates(); 703 /** 704 * Filter the page templates displayed in dropdown. 705 * 706 * @since 3.8 707 * 708 * @param array $templates The templates to be displayed. 709 * @param string $default The default template file name. 710 */ 711 $templates = apply_filters( 'page_template_dropdown_items', $templates, $default ); 703 712 ksort( $templates ); 704 713 foreach (array_keys( $templates ) as $template ) 705 714 : if ( $default == $templates[$template] )