Make WordPress Core

Changeset 33390


Ignore:
Timestamp:
07/23/2015 05:16:04 AM (9 years ago)
Author:
dd32
Message:

Switch to a more performant query in meta_form().

Props lumaraf, swissspidy, rarylson, pento
Fixes #24498

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/template.php

    r33340 r33390  
    678678     */
    679679    $limit = apply_filters( 'postmeta_form_limit', 30 );
    680     $sql = "SELECT meta_key
     680    $sql = "SELECT DISTINCT meta_key
    681681        FROM $wpdb->postmeta
    682         GROUP BY meta_key
     682        WHERE meta_key NOT BETWEEN '_' AND '_z'
    683683        HAVING meta_key NOT LIKE %s
    684684        ORDER BY meta_key
Note: See TracChangeset for help on using the changeset viewer.