[wp-trac] [WordPress Trac] #40064: Deprecate `get_blog_details()`
WordPress Trac
noreply at wordpress.org
Thu Mar 23 08:28:27 UTC 2017
#40064: Deprecate `get_blog_details()`
--------------------------------+------------------------
Reporter: flixos90 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.8
Component: Networks and Sites | Version:
Severity: normal | Resolution:
Keywords: dev-feedback | Focuses: multisite
--------------------------------+------------------------
Comment (by flixos90):
@jeremyfelt That makes sense. I think we can make `get_site_by()` a one-
to-one replacement though if we develop it in a proper way. The only
exception would be that it would always return a `WP_Site` instead of
plain object. Then `get_blog_details()` could call `get_site_by()` and
transform its return value into a plain object, including taking care of
whether to `$get_all` or not.
Maybe we can deprecate the function then, maybe not. I think we should at
least discourage its usage then.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40064#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list