From 53ee688f08ab50e090583864e91a2e2f0fc4834f Mon Sep 17 00:00:00 2001 From: rob1n Date: Thu, 3 May 2007 04:41:22 +0000 Subject: [PATCH] Sort page templates by name. Props Arrrr. see #2926 git-svn-id: https://develop.svn.wordpress.org/trunk@5380 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/admin-functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index 7485ab6a8c..5bc83efb8d 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -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'";