Changes between Initial Version and Version 1 of Ticket #24498, comment 11
- Timestamp:
- 07/17/2015 02:26:34 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #24498, comment 11
initial v1 27 27 28 28 {{{ 29 SELECT UNIQUEmeta_key29 SELECT DISTINCT meta_key 30 30 FROM wp_postmeta 31 31 WHERE meta_key NOT LIKE '\_%' … … 46 46 $limit = apply_filters( 'postmeta_form_limit', 30 ); 47 47 - $sql = "SELECT meta_key 48 + $sql = "SELECT UNIQUEmeta_key48 + $sql = "SELECT DISTINCT meta_key 49 49 FROM $wpdb->postmeta 50 50 - GROUP BY meta_key … … 58 58 ---- 59 59 60 I'm happy that @pross (comment 10) just proposed the same patch than me .60 I'm happy that @pross (comment 10) just proposed the same patch than me (I update the patch to use DISTICT instead of UNIQUE because DISTICT is more common).
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)