[wp-trac] [WordPress Trac] #38491: Deprecate the `blog_details` filter

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


#38491: Deprecate the `blog_details` filter
--------------------------------------+-------------------------
 Reporter:  flixos90                  |       Owner:  jeremyfelt
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  4.7
Component:  Networks and Sites        |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  needs-dev-note has-patch  |     Focuses:  multisite
--------------------------------------+-------------------------
Changes (by jeremyfelt):

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


Comment:

 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/38491#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list