[wp-trac] [WordPress Trac] #40513: switch_to_blog should accept a WP_site as param

WordPress Trac noreply at wordpress.org
Sat Apr 22 12:53:38 UTC 2017


#40513: switch_to_blog should accept a WP_site as param
-----------------------------------+------------------------------
 Reporter:  spacedmonkey           |       Owner:
     Type:  enhancement            |      Status:  new
 Priority:  normal                 |   Milestone:  Awaiting Review
Component:  Networks and Sites     |     Version:  3.0
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |     Focuses:  multisite
-----------------------------------+------------------------------

Comment (by spacedmonkey):

 I agree. Naming of variables and docs do need work here. @DrewAPicture is
 the best man to look at this.

 I don't agree about a new action. The switch_blog action is fired in
 switch_to_blog and in the restore. In  40513.3.diff I now pass
 $current_blog in the restore function. If doing this is going to be
 useful, we have to pass it to the switch_blog action.

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


More information about the wp-trac mailing list