[wp-trac] [WordPress Trac] #48678: Problem with $tag V5.3

WordPress Trac noreply at wordpress.org
Thu Mar 26 06:46:41 UTC 2020


#48678: Problem with $tag V5.3
--------------------------+----------------------
 Reporter:  pajtim        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Query         |     Version:  5.3
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:
--------------------------+----------------------
Changes (by SergeyBiryukov):

 * status:  new => closed
 * severity:  critical => normal
 * component:  General => Query
 * milestone:  Awaiting Review =>
 * keywords:  $tag =>
 * resolution:   => invalid


Comment:

 Hi there, welcome to WordPress Trac! Thanks for the report, sorry it took
 a while for someone to get back to you.

 It's not quite clear where the `$tag` variable in your example comes from.

 > var_dump($cat); return Nothing and var_dump($tag); return Category.

 If you're passing the `$tag` value to the `post__not_in` parameter, it
 needs to be an array, not a string.

 As far as I can see, there's no bug here. Please note that this Trac is
 used for enhancements and bug reporting for the WordPress core software,
 not for individual support questions.

 Please try the support forums to get help with your site:
 https://wordpress.org/support/forums/

 Feel free to reopen with steps to reproduce on a clean install if it turns
 out to be an issue in WordPress core.

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


More information about the wp-trac mailing list