Docs: Fix the types for some properties and parameters that use the generic object type.

See #50768


git-svn-id: https://develop.svn.wordpress.org/trunk@49119 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2020-10-10 19:12:04 +00:00
parent 4f3c9c1f30
commit 6917c731f8
5 changed files with 7 additions and 7 deletions

View File

@@ -63,7 +63,7 @@ class WP_Query {
* Holds the contents of a post, page, category, attachment.
*
* @since 1.5.0
* @var object|array
* @var WP_Term|WP_Post_Type|WP_Post|WP_User|null
*/
public $queried_object;
@@ -3457,7 +3457,7 @@ class WP_Query {
*
* @since 1.5.0
*
* @return object
* @return WP_Term|WP_Post_Type|WP_Post|WP_User|null The queried object.
*/
public function get_queried_object() {
if ( isset( $this->queried_object ) ) {