[wp-trac] [WordPress Trac] #33900: introduce get_current_network_id helper function

WordPress Trac noreply at wordpress.org
Thu Jun 9 20:33:38 UTC 2016


#33900: introduce get_current_network_id helper function
--------------------------------+------------------------
 Reporter:  spacedmonkey        |       Owner:  flixos90
     Type:  enhancement         |      Status:  closed
 Priority:  normal              |   Milestone:  4.6
Component:  Networks and Sites  |     Version:  4.4
 Severity:  normal              |  Resolution:  fixed
 Keywords:  has-patch           |     Focuses:  multisite
--------------------------------+------------------------
Changes (by jeremyfelt):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"37670"]:
 {{{
 #!CommitTicketReference repository="" revision="37670"
 Multisite: Introduce `get_current_network_id()`

 Similar to `get_current_blog_id`, this can be used to get the ID of the
 `$current_site` global. If not available, it will fallback to the main
 network ID. In single site, this will return 1.

 Props spacedmonkey, flixos90.
 Fixes #33900.
 }}}

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


More information about the wp-trac mailing list