Security, performance, marketing, and design tools — Jetpack is made by WordPress experts to make WP sites safer and faster, and help you grow your traffic.
Now that wpcom_json_api_request_as_blog contains an abstraction to call the WP.com API directly when running on WP.com we no longer need to add IS_WPCOM conditionals before calling wpcom_json_api_request_as_blog. Instead we can simply remove all of the IS_WPCOM code block and call wpcom_json_api_request_as_blog in both environments.
I have managed to find 4 instances in the code where this needs updating:
Now that
wpcom_json_api_request_as_blog
contains an abstraction to call the WP.com API directly when running on WP.com we no longer need to addIS_WPCOM
conditionals before callingwpcom_json_api_request_as_blog
. Instead we can simply remove all of theIS_WPCOM
code block and callwpcom_json_api_request_as_blog
in both environments.I have managed to find 4 instances in the code where this needs updating:
See p7H4VZ-2LY-p2 and #15468 for details.