Make WordPress Core

Changeset 55640


Ignore:
Timestamp:
04/08/2023 09:51:12 AM (20 months ago)
Author:
SergeyBiryukov
Message:

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

Follow-up to [55248].

Props tmatsuur.
Merges [55597] to the 6.2 branch.
Fixes #57996.

Location:
branches/6.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.2

  • branches/6.2/src/wp-includes/class-wp-query.php

    r55252 r55640  
    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.