-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Docs: Fix @param type for get_posts()
#11179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -2599,7 +2599,7 @@ function is_post_embeddable( $post = null ) { | |||||||||||||
| * @see WP_Query | ||||||||||||||
| * @see WP_Query::parse_query() | ||||||||||||||
| * | ||||||||||||||
| * @param array $args { | ||||||||||||||
| * @param array|string $args { | ||||||||||||||
| * Optional. Arguments to retrieve posts. See WP_Query::parse_query() for all available arguments. | ||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the review, @westonruter! Other functions that already document What do you think about using something like "Optional. Array or query string of arguments to retrieve posts." here instead, to stay consistent with the existing pattern?
Suggested change
|
||||||||||||||
| * | ||||||||||||||
| * @type int $numberposts Total number of posts to retrieve. Is an alias of `$posts_per_page` | ||||||||||||||
|
|
||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.