Open
Description
Until recently, WP.com wouldn't return the correct site id when it called Jetpack_Options::get_option( ‘id’ )
. Instead we'd have to add lots of this in the code:
if ( IS_WPCOM ) { return get_current_blog_id() } else { Jetpack_Options::get_option( 'id' ) }
However since #16561, we can use Jetpack_Options::get_option( 'id' ) on WP.com as well as self-hosted Jetpack sites, so we can remove all of these forks in the code. See also p9dueE-1Ee-p2
-
Line 224 in b7acf5e
Activity