mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-05 05:04:31 +00:00
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:
@@ -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 ) ) {
|
||||
|
||||
Reference in New Issue
Block a user