WordPress.org

Make WordPress Core

Ticket #43630: 43630.diff

File 43630.diff, 543 bytes (added by markparnell, 12 months ago)
  • wp-admin/includes/template.php

    diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php
    index c140849f6e..1f9f561ae4 100644
    a b function meta_form( $post = null ) { 
    694694                $sql   = "SELECT DISTINCT meta_key
    695695                        FROM $wpdb->postmeta
    696696                        WHERE meta_key NOT BETWEEN '_' AND '_z'
    697                         HAVING meta_key NOT LIKE %s
     697                          AND meta_key NOT LIKE %s
    698698                        ORDER BY meta_key
    699699                        LIMIT %d";
    700700                $keys  = $wpdb->get_col( $wpdb->prepare( $sql, $wpdb->esc_like( '_' ) . '%', $limit ) );