Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/wp-includes/post.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically, wp_parse_args() can take an object too: string|array|object. However, I'm not sure we want to necessarily encourage that. Just because you can pass something doesn't mean you should. The same could be said for string.

* Optional. Arguments to retrieve posts. See WP_Query::parse_query() for all available arguments.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Optional. Arguments to retrieve posts. See WP_Query::parse_query() for all available arguments.
* Optional. Arguments to retrieve posts. See WP_Query::parse_query() for all available arguments.
* A query string may also be provided.

*
* @type int $numberposts Total number of posts to retrieve. Is an alias of `$posts_per_page`
Expand Down
Loading