Make WordPress Core

Changeset 54765


Ignore:
Timestamp:
11/08/2022 01:27:23 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Document the usage of $wpdb global in WP_Date_Query methods.

Follow-up to [25139], [29933], [38280], [38768].

Props upadalavipul.
Fixes #57033.

File:
1 edited

Legend:

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

    r54530 r54765  
    474474         * @since 3.7.0
    475475         *
     476         * @global wpdb $wpdb WordPress database abstraction object.
     477         *
    476478         * @param string $column The user-supplied column name.
    477479         * @return string A validated column name value.
     
    700702         * @since 4.1.0
    701703         *
     704         * @global wpdb $wpdb WordPress database abstraction object.
     705         *
    702706         * @param array $query        Date query clause.
    703707         * @param array $parent_query Parent query of the current date query.
     
    962966         * @since 3.7.0
    963967         *
     968         * @global wpdb $wpdb WordPress database abstraction object.
     969         *
    964970         * @param string   $column  The column to query against. Needs to be pre-validated!
    965971         * @param string   $compare The comparison operator. Needs to be pre-validated!
Note: See TracChangeset for help on using the changeset viewer.