WordPress.org

Make WordPress Core

Ticket #9684: 9684.diff

File 9684.diff, 703 bytes (added by Denis-de-Bernardy, 9 years ago)

fixed patch -- restores the natsort

  • wp-admin/includes/template.php

     
    24502450                SELECT meta_key
    24512451                FROM $wpdb->postmeta
    24522452                GROUP BY meta_key
    2453                 ORDER BY meta_key
     2453                HAVING meta_key NOT LIKE '\_%'
     2454                ORDER BY LOWER(meta_key)
    24542455                LIMIT $limit" );
    2455         if ( $keys ) {
    2456                 function filter_private_keys($key) {
    2457                         return ( 0 === strpos($key, '_') ) ? false : true;
    2458                 }
    2459                 $keys = array_filter($keys, 'filter_private_keys');
     2456        if ( $keys )
    24602457                natcasesort($keys);
    2461         }
    24622458?>
    24632459<p><strong><?php _e( 'Add new custom field:' ) ?></strong></p>
    24642460<table id="newmeta">