mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Docs: Document parameters that accept an array of integers using typed array notation.
While many of these parameters also technically accept an array of numerical strings, they are all ultimately cast to an array of integers. Documenting them as such assists developers in understanding the expected types. See #51800, #41756 git-svn-id: https://develop.svn.wordpress.org/trunk@49672 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -405,8 +405,8 @@ function get_author_posts_url( $author_id, $author_nicename = '' ) {
|
||||
* @type string $style If 'list', each author is wrapped in an `<li>` element, otherwise the authors
|
||||
* will be separated by commas.
|
||||
* @type bool $html Whether to list the items in HTML form or plaintext. Default true.
|
||||
* @type array|string $exclude Array or comma/space-separated list of author IDs to exclude. Default empty.
|
||||
* @type array|string $include Array or comma/space-separated list of author IDs to include. Default empty.
|
||||
* @type int[]|string $exclude Array or comma/space-separated list of author IDs to exclude. Default empty.
|
||||
* @type int[]|string $include Array or comma/space-separated list of author IDs to include. Default empty.
|
||||
* }
|
||||
* @return void|string Void if 'echo' argument is true, list of authors if 'echo' is false.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user