[wp-trac] [WordPress Trac] #38351: Replace get_blog_details() usage in wp-includes/ms-blogs.php with get_site()

WordPress Trac noreply at wordpress.org
Fri Oct 21 09:56:28 UTC 2016


#38351: Replace get_blog_details() usage in wp-includes/ms-blogs.php with
get_site()
--------------------------------+-------------------------
 Reporter:  iamfriendly         |       Owner:  jeremyfelt
     Type:  enhancement         |      Status:  assigned
 Priority:  normal              |   Milestone:  4.7
Component:  Networks and Sites  |     Version:  4.4
 Severity:  normal              |  Resolution:
 Keywords:  has-patch           |     Focuses:  multisite
--------------------------------+-------------------------

Comment (by flixos90):

 [attachment:38351.2.diff] includes the additional replacement.

 I personally think we're fine replacing `get_blog_details()` regardless of
 the parameters and document it the filter change. We ''could''
 theoretically also add an `apply_filters_deprecated( 'blog_details',
 array( $details ), '4.7.0', 'site_details' )` into the relevant part of
 `WP_Site` to give developers time to migrate.

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


More information about the wp-trac mailing list