You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Discovered in INN/umbrella-freshenergy#21, where the fix was to make sure that the child theme's code didn't squash the global $post. However, we can't assume that plugins or widgets won't interfere with that.
SO:
write a test that
Uses a post factory to create a post a
Uses a post factory to create a post b
Navigates to a
Sets global $post to b
Expects that the output of largo_post_social_links() is for a, not b
make point 5 above true, by drawing from the queried object rather than global $post.
The text was updated successfully, but these errors were encountered:
Discovered in INN/umbrella-freshenergy#21, where the fix was to make sure that the child theme's code didn't squash the global $post. However, we can't assume that plugins or widgets won't interfere with that.
SO:
a
b
a
$post
tob
largo_post_social_links()
is fora
, notb
The text was updated successfully, but these errors were encountered: