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:
parent
926e50cbf2
commit
53ee688f08
|
@ -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'";
|
||||||
|
|
Loading…
Reference in New Issue