[wp-trac] [WordPress Trac] #63406: Lack of mutex for query object values like is_category and is_author can result in warnings

WordPress Trac noreply at wordpress.org
Fri May 9 09:52:14 UTC 2025


#63406: Lack of mutex for query object values like is_category and is_author can
result in warnings
--------------------------+------------------------------
 Reporter:  leedxw        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Query         |     Version:  6.8
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by karthikeya01):

 Hello @leedxw

 Thanks for reporting the issue.

 I believe this should be fixed in the `Co-Authors Plus` plugin. The plugin
 modifies the `$wp_query` in the `fix_author_page` method in `class-
 coauthors-plus.php` when querying guest authors, and the warnings appear
 only for guest authors, not for normal users. When we visit
 `http://localhost:8889/author/guest_author/?cat=1`, the initial
 queried_object represents `cat=1` and is_category is true, but the plugin
 changes it to author. Therefore, setting `is_category` to false inside the
 function should resolve the issue.

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


More information about the wp-trac mailing list