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

WordPress Trac noreply at wordpress.org
Fri Mar 17 13:52:34 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 stephdau):

 Replying to [comment:1 stephdau]:
 > I'm liking the `get_site_by()` idea, from a processing standpoint.
 >
 > I'm still not super fond of the idea of deprecating
 `get_blog_details()`, primarily because of the amount of person-hours that
 3rd-parties will end up spending on moving to the new function, and users
 upgrading plugins/etc because of it (EG: I have 559 instances of the use
 of `get_blog_details()` outside of Core in the codebase I work on). But at
 least having a direct replacement means devs have more options (regex
 replacements, etc).
 >
 > Keeping the full functionality around is ultimately what matters, so
 it's still a more viable option than the previous plan.
 >
 > Thanks, @flixos90.

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


More information about the wp-trac mailing list