WordPress.org

Make WordPress Core

Ticket #43446: 43446.2.doc.diff

File 43446.2.doc.diff, 3.2 KB (added by soulseekah, 17 months ago)

Docblock

  • src/wp-includes/class-wp-meta-query.php

    diff --git src/wp-includes/class-wp-meta-query.php src/wp-includes/class-wp-meta-query.php
    index d9234c2..4f76bf1 100644
    class WP_Meta_Query { 
    9999         *
    100100         * @since 3.2.0
    101101         * @since 4.2.0 Introduced support for naming query clauses by associative array keys.
    102          * @since 5.0.0 Introduced $compare_key clause parameter, which enables LIKE key matches.
     102         * @since 5.0.0 Introduced $compare_key clause parameter, which enables various key matches.
     103         * @since 5.0.0 Introduced $type_key clause parameter, which enables key casts.
    103104         *
    104105         * @param array $meta_query {
    105106         *     Array of meta query clauses. When first-order clauses or sub-clauses use strings as
    class WP_Meta_Query { 
    111112         *         Optional. An array of first-order clause parameters, or another fully-formed meta query.
    112113         *
    113114         *         @type string $key         Meta key to filter by.
    114          *         @type string $compare_key MySQL operator used for comparing the $key. Accepts '=' and 'LIKE'.
    115          *                                   Default '='.
     115         *         @type string $compare_key MySQL operator used for comparing the $key. Accepts '=' and '!='
     116         *                                   'LIKE', 'NOT LIKE', 'IN', 'NOT IN', 'REGEXP', 'NOT REGEXP', 'RLIKE',
     117         *                                   'EXISTS' or 'NOT EXISTS'.
     118         *                                   Default is 'IN' when `$key` is an array, '=' otherwise.
     119         *         @type string $type_key    MySQL data type that the meta_key column will be CAST to for
     120         *                                   comparisons. Accepts 'BINARY' for regular expression comparisons.
     121         *                                   Default is '' for case-insensitive REGEXP comparisons.
    116122         *         @type string $value       Meta value to filter by.
    117123         *         @type string $compare     MySQL operator used for comparing the $value. Accepts '=',
    118124         *                                   '!=', '>', '>=', '<', '<=', 'LIKE', 'NOT LIKE',
  • src/wp-includes/class-wp-query.php

    diff --git src/wp-includes/class-wp-query.php src/wp-includes/class-wp-query.php
    index b65ac1c..740a3dc 100644
    class WP_Query { 
    605605         * @since 4.6.0 Added 'post_name__in' support for `$orderby`. Introduced the `$lazy_load_term_meta` argument.
    606606         * @since 4.9.0 Introduced the `$comment_count` parameter.
    607607         * @since 5.0.0 Introduced the `$meta_compare_key` parameter.
     608         * @since 5.0.0 Introduced the `$meta_type_key` parameter.
    608609         *
    609610         * @param string|array $query {
    610611         *     Optional. Array or string of Query parameters.
    class WP_Query { 
    646647         *     @type array        $meta_query              An associative array of WP_Meta_Query arguments. See WP_Meta_Query.
    647648         *     @type string       $meta_value              Custom field value.
    648649         *     @type int          $meta_value_num          Custom field value number.
     650         *     @type string       $meta_type_key           Cast for 'meta_key'.
    649651         *     @type int          $menu_order              The menu order of the posts.
    650652         *     @type int          $monthnum                The two-digit month. Default empty. Accepts numbers 1-12.
    651653         *     @type string       $name                    Post slug.