Make WordPress Core

Changeset 48475


Ignore:
Timestamp:
07/14/2020 12:08:28 PM (6 years ago)
Author:
johnbillion
Message:

Docs: Improve docs for arguments that accept a numerically indexed array of associative arrays.

See #49572

Location:
trunk/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ajax-actions.php

    r48473 r48475  
    47764776         *     An array of callable exporters of personal data. Default empty array.
    47774777         *
    4778          *     @type array {
     4778         *     @type array ...$0 {
    47794779         *         Array of personal data exporters.
    47804780         *
     
    49664966         *     An array of callable erasers of personal data. Default empty array.
    49674967         *
    4968          *     @type array {
     4968         *     @type array ...$0 {
    49694969         *         Array of personal data exporters.
    49704970         *
  • trunk/src/wp-admin/includes/class-wp-site-health.php

    r48473 r48475  
    158158                 *
    159159                 * @param array $test_result {
    160                  *     An associated array of test result data.
     160                 *     An associative array of test result data.
    161161                 *
    162                  *     @param string $label  A label describing the test, and is used as a header in the output.
    163                  *     @param string $status The status of the test, which can be a value of `good`, `recommended` or `critical`.
     162                 *     @param string $label       A label describing the test, and is used as a header in the output.
     163                 *     @param string $status      The status of the test, which can be a value of `good`, `recommended` or `critical`.
    164164                 *     @param array  $badge {
    165165                 *         Tests are put into categories which have an associated badge shown, these can be modified and assigned here.
  • trunk/src/wp-includes/class-wp-date-query.php

    r48462 r48475  
    7373         *     Array of date query clauses.
    7474         *
    75          *     @type array {
     75         *     @type array ...$0 {
    7676         *         @type string $column   Optional. The column to query against. If undefined, inherits the value of
    7777         *                                the `$default_column` parameter. Accepts 'post_date', 'post_date_gmt',
     
    8282         *         @type string $relation Optional. The boolean relationship between the date queries. Accepts 'OR' or 'AND'.
    8383         *                                Default 'OR'.
    84          *         @type array {
     84         *         @type array  ...$0 {
    8585         *             Optional. An array of first-order clause parameters, or another fully-formed date query.
    8686         *
  • trunk/src/wp-includes/class-wp-editor.php

    r47861 r48475  
    17951795                 *
    17961796                 * @param array $results {
    1797                  *     An associative array of query results.
    1798                  *
    1799                  *     @type array {
     1797                 *     An array of associative arrays of query results.
     1798                 *
     1799                 *     @type array ...$0 {
    18001800                 *         @type int    $ID        Post ID.
    18011801                 *         @type string $title     The trimmed, escaped post title.
  • trunk/src/wp-includes/class-wp-meta-query.php

    r48110 r48475  
    110110         *     @type string $relation Optional. The MySQL keyword used to join
    111111         *                            the clauses of the query. Accepts 'AND', or 'OR'. Default 'AND'.
    112          *     @type array {
     112         *     @type array  ...$0 {
    113113         *         Optional. An array of first-order clause parameters, or another fully-formed meta query.
    114114         *
  • trunk/src/wp-includes/class-wp-tax-query.php

    r48110 r48475  
    9797         *     @type string $relation Optional. The MySQL keyword used to join
    9898         *                            the clauses of the query. Accepts 'AND', or 'OR'. Default 'AND'.
    99          *     @type array {
    100          *         Optional. An array of first-order clause parameters, or another fully-formed tax query.
     99         *     @type array  ...$0 {
     100         *         An array of first-order clause parameters, or another fully-formed tax query.
    101101         *
    102102         *         @type string           $taxonomy         Taxonomy being queried. Optional when field=term_taxonomy_id.
Note: See TracChangeset for help on using the changeset viewer.