[wp-trac] [WordPress Trac] #58490: Make wp_update_term_count function site context aware for the multisite

WordPress Trac noreply at wordpress.org
Thu Jun 8 12:53:10 UTC 2023


#58490: Make wp_update_term_count function site context aware for the multisite
--------------------------+------------------------------
 Reporter:  sathyapulse   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Taxonomy      |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by sathyapulse):

 Changing the order of the function calls in the description.

 {{{
 $post_list = [1, 2, 3];
 wp_defer_term_counting(true);
 switch_to_blog(2);
 do_multiple_syncs( $post_list );
 restore_current_blog();
 wp_defer_term_counting(false);
 }}}

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


More information about the wp-trac mailing list