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

See #49572
Built from https://develop.svn.wordpress.org/trunk@48475


git-svn-id: http://core.svn.wordpress.org/trunk@48244 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
John Blackbourn 2020-07-14 12:10:05 +00:00
parent acca036e88
commit 5eb3f0ffcb
7 changed files with 13 additions and 13 deletions

View File

@ -4775,7 +4775,7 @@ function wp_ajax_wp_privacy_export_personal_data() {
* @param array $args { * @param array $args {
* An array of callable exporters of personal data. Default empty array. * An array of callable exporters of personal data. Default empty array.
* *
* @type array { * @type array ...$0 {
* Array of personal data exporters. * Array of personal data exporters.
* *
* @type callable $callback Callable exporter function that accepts an * @type callable $callback Callable exporter function that accepts an
@ -4965,7 +4965,7 @@ function wp_ajax_wp_privacy_erase_personal_data() {
* @param array $args { * @param array $args {
* An array of callable erasers of personal data. Default empty array. * An array of callable erasers of personal data. Default empty array.
* *
* @type array { * @type array ...$0 {
* Array of personal data exporters. * Array of personal data exporters.
* *
* @type callable $callback Callable eraser that accepts an email address and * @type callable $callback Callable eraser that accepts an email address and

View File

@ -157,10 +157,10 @@ class WP_Site_Health {
* @since 5.3.0 * @since 5.3.0
* *
* @param array $test_result { * @param array $test_result {
* An associated array of test result data. * An associative array of test result data.
* *
* @param string $label A label describing the test, and is used as a header in the output. * @param string $label A label describing the test, and is used as a header in the output.
* @param string $status The status of the test, which can be a value of `good`, `recommended` or `critical`. * @param string $status The status of the test, which can be a value of `good`, `recommended` or `critical`.
* @param array $badge { * @param array $badge {
* Tests are put into categories which have an associated badge shown, these can be modified and assigned here. * Tests are put into categories which have an associated badge shown, these can be modified and assigned here.
* *

View File

@ -72,7 +72,7 @@ class WP_Date_Query {
* @param array $date_query { * @param array $date_query {
* Array of date query clauses. * Array of date query clauses.
* *
* @type array { * @type array ...$0 {
* @type string $column Optional. The column to query against. If undefined, inherits the value of * @type string $column Optional. The column to query against. If undefined, inherits the value of
* the `$default_column` parameter. Accepts 'post_date', 'post_date_gmt', * the `$default_column` parameter. Accepts 'post_date', 'post_date_gmt',
* 'post_modified','post_modified_gmt', 'comment_date', 'comment_date_gmt'. * 'post_modified','post_modified_gmt', 'comment_date', 'comment_date_gmt'.
@ -81,7 +81,7 @@ class WP_Date_Query {
* 'IN', 'NOT IN', 'BETWEEN', 'NOT BETWEEN'. Default '='. * 'IN', 'NOT IN', 'BETWEEN', 'NOT BETWEEN'. Default '='.
* @type string $relation Optional. The boolean relationship between the date queries. Accepts 'OR' or 'AND'. * @type string $relation Optional. The boolean relationship between the date queries. Accepts 'OR' or 'AND'.
* Default 'OR'. * Default 'OR'.
* @type array { * @type array ...$0 {
* Optional. An array of first-order clause parameters, or another fully-formed date query. * Optional. An array of first-order clause parameters, or another fully-formed date query.
* *
* @type string|array $before { * @type string|array $before {

View File

@ -1794,9 +1794,9 @@ final class _WP_Editors {
* @see 'wp_link_query_args' filter * @see 'wp_link_query_args' filter
* *
* @param array $results { * @param array $results {
* An associative array of query results. * An array of associative arrays of query results.
* *
* @type array { * @type array ...$0 {
* @type int $ID Post ID. * @type int $ID Post ID.
* @type string $title The trimmed, escaped post title. * @type string $title The trimmed, escaped post title.
* @type string $permalink Post permalink. * @type string $permalink Post permalink.

View File

@ -109,7 +109,7 @@ class WP_Meta_Query {
* *
* @type string $relation Optional. The MySQL keyword used to join * @type string $relation Optional. The MySQL keyword used to join
* the clauses of the query. Accepts 'AND', or 'OR'. Default 'AND'. * the clauses of the query. Accepts 'AND', or 'OR'. Default 'AND'.
* @type array { * @type array ...$0 {
* Optional. An array of first-order clause parameters, or another fully-formed meta query. * Optional. An array of first-order clause parameters, or another fully-formed meta query.
* *
* @type string $key Meta key to filter by. * @type string $key Meta key to filter by.

View File

@ -96,8 +96,8 @@ class WP_Tax_Query {
* *
* @type string $relation Optional. The MySQL keyword used to join * @type string $relation Optional. The MySQL keyword used to join
* the clauses of the query. Accepts 'AND', or 'OR'. Default 'AND'. * the clauses of the query. Accepts 'AND', or 'OR'. Default 'AND'.
* @type array { * @type array ...$0 {
* Optional. An array of first-order clause parameters, or another fully-formed tax query. * An array of first-order clause parameters, or another fully-formed tax query.
* *
* @type string $taxonomy Taxonomy being queried. Optional when field=term_taxonomy_id. * @type string $taxonomy Taxonomy being queried. Optional when field=term_taxonomy_id.
* @type string|int|array $terms Term or terms to filter by. * @type string|int|array $terms Term or terms to filter by.

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.5-beta1-48474'; $wp_version = '5.5-beta1-48475';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.