[buddypress-trac] [BuddyPress Trac] #7326: `get_blog_details()` will be deprecated in WordPress 4.8
buddypress-trac
noreply at wordpress.org
Fri Nov 4 23:45:51 UTC 2016
#7326: `get_blog_details()` will be deprecated in WordPress 4.8
------------------------------+-----------------------------
Reporter: netweb | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Build/Test Tools | Version:
Severity: normal | Keywords: needs-patch
------------------------------+-----------------------------
Via https://make.wordpress.org/core/2016/11/04/multisite-focused-changes-
in-4-7/
>
> `get_blog_details()` replaced with `get_site()`
> A lot of progress has been made over the last few releases to get things
in place for this transition. Now that `WP_Site` and `WP_Network` objects
exist and are accessible with functions like `get_site()` and
`get_network()`, they can be implemented throughout core.
>
> In WordPress 4.7, `get_blog_details()` was replaced throughout core code
with the modern `get_site()`. The roadmap for this includes deprecating
`get_blog_details()` in WordPress 4.8, so take this cycle as a chance to
move your code in that direction.
>
> `get_site()` is often a direct replacement, though `get_sites()` can
also be used to query for sites when an ID is not available.
>
> See #WP37102 for details on this change.
The BuddyPress PHPUnit test suite uses `get_blog_details()` in the
following locations:
https://buddypress.trac.wordpress.org/browser/trunk/tests/phpunit/includes/testcase.php#L348
https://buddypress.trac.wordpress.org/browser/trunk/tests/phpunit/includes/testcase.php#L353
Related: #bbPress3015
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7326>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list