[wp-trac] [WordPress Trac] #49265: switch_to_blog() and restore_current_blog() reuse switch_blog action
    WordPress Trac 
    noreply at wordpress.org
       
    Wed Jan 22 20:51:39 UTC 2020
    
    
  
#49265: switch_to_blog() and restore_current_blog() reuse switch_blog action
--------------------------------+-----------------------------
 Reporter:  iandunn             |       Owner:  SergeyBiryukov
     Type:  enhancement         |      Status:  closed
 Priority:  normal              |   Milestone:  5.4
Component:  Networks and Sites  |     Version:
 Severity:  normal              |  Resolution:  fixed
 Keywords:  has-patch commit    |     Focuses:
--------------------------------+-----------------------------
Changes (by iandunn):
 * status:  accepted => closed
 * resolution:   => fixed
Comment:
 In [changeset:"47105" 47105]:
 {{{
 #!CommitTicketReference repository="" revision="47105"
 Multisite: Add `$context` parameter to `switch_blog` action.
 The action is fired by both `switch_to_blog()` and
 `restore_current_blog()`, and previously it was difficult for callback
 functions to determine which function had fired it.
 Props SergeyBiryukov, johnbillion, jeremyfelt.
 Fixes #49265.
 }}}
-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49265#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
    
    
More information about the wp-trac
mailing list