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

WordPress Trac noreply at wordpress.org
Tue Oct 25 17:23:52 UTC 2016


#38491: Deprecate the `blog_details` filter
--------------------------------+-------------------------
 Reporter:  flixos90            |      Owner:
     Type:  enhancement         |     Status:  new
 Priority:  normal              |  Milestone:  4.7
Component:  Networks and Sites  |    Version:
 Severity:  normal              |   Keywords:  needs-patch
  Focuses:  multisite           |
--------------------------------+-------------------------
 Per discussion during multisite office-hours
 (https://wordpress.slack.com/archives/core-multisite/p1477413103001760) we
 are going to deprecate the `blog_details` filter and advise developers to
 use `site_details` instead.

 One issue with that is since we have been replacing all the
 `get_blog_details()` calls in Core with `get_site()` (see #37102), the
 `blog_details` filter isn't run at all in some of these occasions.
 Therefore we will also add the `blog_details` filter (as deprecated) to
 `WP_Site::get_details()` to maintain backward compatibility.

 The function `get_blog_details()` will also be deprecated very soon,
 likely in the next release.

 Because of the complexity of these function replacements and the
 deprecated filter we need to write a dev-note on this or at least make it
 a highlighted topic on the general multisite dev-note.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38491>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list