[wp-trac] [WordPress Trac] #40180: Introduce `get_site_by()` function for multisite

WordPress Trac noreply at wordpress.org
Mon Mar 20 16:44:39 UTC 2017


#40180: Introduce `get_site_by()` function for multisite
--------------------------------+------------------------
 Reporter:  flixos90            |       Owner:
     Type:  enhancement         |      Status:  new
 Priority:  normal              |   Milestone:  4.8
Component:  Networks and Sites  |     Version:
 Severity:  normal              |  Resolution:
 Keywords:  2nd-opinion         |     Focuses:  multisite
--------------------------------+------------------------

Comment (by flixos90):

 @stephdau We can likely handle the parameters in the same way as a
 function like `add_query_arg()` works: You can either pass a key and a
 value as two separate parameters, or an array of key => value pairs (in
 that case the second parameter would be ignored). This makes the function
 flexible enough for these use-cases.

 Thanks for bringing up the object iteration as well.

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


More information about the wp-trac mailing list