Skip to content

Always use Jetpack_Options::get_option( ‘id’ ) #17647

Open
@scruffian

Description

@scruffian

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions