WordPress.org

Make WordPress Core

Ticket #2316: 2316.diff

File 2316.diff, 475 bytes (added by tenpura, 15 years ago)

Hide "_xxx" stuff from the dropdown. Increase the LIMIT value a bit.

  • admin-functions.php

     
    894894        $keys = $wpdb->get_col("
    895895                        SELECT meta_key
    896896                        FROM $wpdb->postmeta
     897                        WHERE meta_key NOT LIKE '\_%'
    897898                        GROUP BY meta_key
    898899                        ORDER BY meta_id DESC
    899                         LIMIT 10");
     900                        LIMIT 50");
    900901?>
    901902<h3><?php _e('Add a new custom field:') ?></h3>
    902903<table cellspacing="3" cellpadding="3">