Ticket #1865: metakeys_filterable_limit.diff
File metakeys_filterable_limit.diff, 685 bytes (added by , 19 years ago) |
---|
-
wp-admin/admin-functions.php
763 763 764 764 function meta_form() { 765 765 global $wpdb; 766 $limit = apply_filters('meta_form_limit', 50); 766 767 $keys = $wpdb->get_col(" 767 768 SELECT meta_key 768 769 FROM $wpdb->postmeta 769 770 GROUP BY meta_key 770 771 ORDER BY meta_id DESC 771 LIMIT 10");772 LIMIT $limit"); 772 773 ?> 773 774 <h3><?php _e('Add a new custom field:') ?></h3> 774 775 <table cellspacing="3" cellpadding="3"> … … 1733 1734 return array((int) ($width / $height * $hmax), $hmax); 1734 1735 } 1735 1736 1736 ?> 1737 No newline at end of file 1737 ?>