[wp-trac] [WordPress Trac] #37102: Replace get_blog_details with get_site

WordPress Trac noreply at wordpress.org
Tue Oct 25 23:43:04 UTC 2016


#37102: Replace get_blog_details with get_site
--------------------------------+-------------------------
 Reporter:  spacedmonkey        |       Owner:  jeremyfelt
     Type:  task (blessed)      |      Status:  reviewing
 Priority:  normal              |   Milestone:  4.7
Component:  Networks and Sites  |     Version:  4.6
 Severity:  normal              |  Resolution:
 Keywords:  has-patch           |     Focuses:  multisite
--------------------------------+-------------------------

Comment (by jeremyfelt):

 In [changeset:"38936"]:
 {{{
 #!CommitTicketReference repository="" revision="38936"
 Multisite: Deprecate the `blog_details` filter.

 `get_site()` has replaced `get_blog_details()` throughout core and is the
 recommended way to retrieve a current or single site object.

 The `blog_details` filter is applied when full details are requested from
 `get_blog_details()`.

 To ensure backwards compatibility in the switch to `get_site()`, this
 `blog_details` filter is now applied in `WP_Site::get_details()` and
 marked as deprecated with a note to rely instead on the `site_details`
 filter introduced in 4.6.

 Props flixos90.
 See #37102.
 Fixes #38491.
 }}}

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


More information about the wp-trac mailing list