Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/05/2020 05:53:59 PM (4 years ago)
Author:
johnjamesjacoby
Message:

Meta: always query meta_value by string, not by integer.

This commit swaps "%d" for "%s" when querying by meta_value, even with numeric values. This allows for custom index alterations to perform as intended, and also more closely follows how WordPress core itself operates.

In branches/2.6, for 2.6.6. See #3408.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/src/includes/common/functions.php

    r7097 r7149  
    17391739                            ON p.ID = pm.post_id
    17401740                            AND pm.meta_key = %s
    1741                     WHERE pm.meta_value = %d
     1741                    WHERE pm.meta_value = %s
    17421742                    GROUP BY p.post_status, p.post_type";
    17431743
Note: See TracChangeset for help on using the changeset viewer.