[buddypress-trac] [BuddyPress] #4948: bp_core_avatar_url() wonky in sub-sites since WP 3.5
buddypress-trac
noreply at wordpress.org
Mon May 13 14:25:05 UTC 2013
#4948: bp_core_avatar_url() wonky in sub-sites since WP 3.5
----------------------------------------+-----------------------
Reporter: r-a-y | Owner: r-a-y
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 1.7.2
Component: Core | Version: 1.6.4
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests |
----------------------------------------+-----------------------
Comment (by boonebgorges):
In [changeset:"7058"]:
{{{
#!CommitTicketReference repository="" revision="7058"
Improvements to BP_UnitTestCase::go_to() for multisite
When using go_to() to ape a pageload on a secondary site in multisite, a
number of global variables (such as $current_blog and $current_site, which
are normall set in ms-settings.php) must be reset for that secondary blog.
Having the globals set correctly is important for certain kinds of MS-
specific
unit tests, such as test_avatars_on_non_root_blog().
As a convenience, this changeset introduces BP_UnitTestCase::go_to_root(),
which allows for the easy resetting of the relevant globals at the end of
a
testcase where go_to() has been used on a secondary blog.
See #4948
Props r-a-y
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4948#comment:14>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list