[wp-trac] [WordPress Trac] #55837: WP_Term_Query cache problem

WordPress Trac noreply at wordpress.org
Wed Jun 8 09:14:08 UTC 2022


#55837: WP_Term_Query cache problem
--------------------------------------+---------------------------
 Reporter:  denishua                  |       Owner:  spacedmonkey
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  6.0.1
Component:  Taxonomy                  |     Version:  6.0
 Severity:  normal                    |  Resolution:  worksforme
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------------
Changes (by jnz31):

 * status:  assigned => closed
 * resolution:   => worksforme


Comment:

 Replying to [comment:11 spacedmonkey]:
 > @denishua I have a patch that will fix both issues. Any chance you could
 test my PR?

 thanks @spacedmonkey
 i applied your patch to my live website and the categories are back up and
 running again. before that, my code

 {{{
 $args = [
   'taxonomy' => 'product_cat',
   'title_li' => '',
   'exclude' => [123, 456],
   'orderby' => 'menu_order',
   'echo' => false,
 ];
 echo '<ul class="collection-list">' . wp_list_categories($args) . '</ul>';
 }}}
 returned: no categories
 (i updated to wp 6.0 yesterday, before i had 5.9.3 running and the
 product_cats were working fine)

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


More information about the wp-trac mailing list