WordPress.org

Make WordPress Core

Changeset 36609


Ignore:
Timestamp:
02/22/2016 03:55:09 AM (5 years ago)
Author:
boonebgorges
Message:

Docs: WP_Meta_Query accepts 'EXISTS' or 'NOT EXISTS' for $compare.

Props apaliku, jdgrimes.
Fixes #35891.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-meta-query.php

    r35170 r36609  
    125125     *         @type string $value   Meta value to filter by.
    126126     *         @type string $compare MySQL operator used for comparing the $value. Accepts '=',
    127      *                               '!=', '>', '>=', '<', '<=', 'LIKE', 'NOT LIKE', 'IN', 'NOT IN',
    128      *                               'BETWEEN', 'NOT BETWEEN', 'REGEXP', 'NOT REGEXP', or 'RLIKE'.
     127     *                               '!=', '>', '>=', '<', '<=', 'LIKE', 'NOT LIKE',
     128     *                               'IN', 'NOT IN', 'BETWEEN', 'NOT BETWEEN', 'REGEXP',
     129     *                               'NOT REGEXP', 'RLIKE', 'EXISTS' or 'NOT EXISTS'.
    129130     *                               Default is 'IN' when `$value` is an array, '=' otherwise.
    130131     *         @type string $type    MySQL data type that the meta_value column will be CAST to for
Note: See TracChangeset for help on using the changeset viewer.