[wp-trac] [WordPress Trac] #65400: WP_Query::get_queried_object() documented return values are incorrect

WordPress Trac noreply at wordpress.org
Wed Jun 3 11:37:32 UTC 2026


#65400: WP_Query::get_queried_object() documented return values are incorrect
--------------------------+------------------------------
 Reporter:  tommusrhodus  |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Comments      |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by tommusrhodus):

 Noting this happens if `null` is passed, or if the captured author ID from
 GET doesn't resolve to an actual author: https://github.com/WordPress
 /wordpress-develop/blob/trunk/src/wp-includes/class-wp-query.php#L4037

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/65400#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list