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

WordPress Trac noreply at wordpress.org
Fri Apr 21 10:52:31 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              |   Keywords:
  Focuses:  multisite           |
--------------------------------+-----------------------------
 The switch_to_blog function currently only accepts a blog id. By passing a
 WP_Site object where available, it means switch has more context. The
 WP_site object has all the site information, including the network id.

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


More information about the wp-trac mailing list