Make WordPress Core

Ticket #2926: 2926.diff

File 2926.diff, 470 bytes (added by Arrrr, 18 years ago)

Adds ksort() to page_template_dropdown() so that the templates are sorted there as well.

  • wp-admin/admin-functions.php

     
    11751175
    11761176function page_template_dropdown($default = '') {
    11771177        $templates = get_page_templates();
     1178        ksort($templates);
    11781179        foreach (array_keys($templates) as $template)
    11791180                : if ($default == $templates[$template])
    11801181                        $selected = " selected='selected'";