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:
parent
0b1ce5d4f8
commit
ce488547e8
|
@ -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'";
|
||||
|
|
Loading…
Reference in New Issue