[wp-trac] [WordPress Trac] #55908: performing two identical actions in sequence produces different results

WordPress Trac noreply at wordpress.org
Fri Jun 3 07:34:39 UTC 2022


#55908: performing two identical actions in sequence produces different results
--------------------------+-----------------------------
 Reporter:  xenon615      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Cache API     |    Version:  6.0
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Discovered today

 {{{#!php
 <?php
 $c1 = get_terms(['taxonomy' => 'product_cat']);
 $c2 = get_terms(['taxonomy' => 'product_cat']);
 }}}

 $c1 not equal $c2 ($c2 unlike the $c1 contains empty terms)

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55908>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list