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

git-svn-id: https://develop.svn.wordpress.org/trunk@5380 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
rob1n 2007-05-03 04:41:22 +00:00
parent 926e50cbf2
commit 53ee688f08
1 changed files with 1 additions and 0 deletions

View File

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