Make WordPress Core

Changeset 55597


Ignore:
Timestamp:
03/28/2023 10:54:46 AM (14 months ago)
Author:
SergeyBiryukov
Message:

Docs: Use typed array notation for search_columns in WP_Query::parse_query().

Follow-up to [55248].

Props tmatsuur.
Fixes #57996.

File:
1 edited

Legend:

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

    r55558 r55597  
    753753     *                                                    character used for exclusion can be modified using the
    754754     *                                                    the 'wp_query_search_exclusion_prefix' filter.
    755      *     @type array           $search_columns          Array of column names to be searched. Accepts 'post_title',
     755     *     @type string[]        $search_columns          Array of column names to be searched. Accepts 'post_title',
    756756     *                                                    'post_excerpt' and 'post_content'. Default empty array.
    757757     *     @type int             $second                  Second of the minute. Default empty. Accepts numbers 0-59.
Note: See TracChangeset for help on using the changeset viewer.