Sort page templates by name. Props Arrrr. see #2926

git-svn-id: http://svn.automattic.com/wordpress/trunk@5380 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rob1n 2007-05-03 04:41:22 +00:00
parent 0b1ce5d4f8
commit ce488547e8
1 changed files with 1 additions and 0 deletions

View File

@ -1355,6 +1355,7 @@ function get_page_templates() {
function page_template_dropdown( $default = '' ) { function page_template_dropdown( $default = '' ) {
$templates = get_page_templates(); $templates = get_page_templates();
ksort( $templates );
foreach (array_keys( $templates ) as $template ) foreach (array_keys( $templates ) as $template )
: if ( $default == $templates[$template] ) : if ( $default == $templates[$template] )
$selected = " selected='selected'"; $selected = " selected='selected'";