File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
WordPress/Classes/Services Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -493,7 +493,12 @@ - (void)updateBlogWithRemoteBlog:(RemoteBlog *)remoteBlog account:(WPAccount *)a
493493{
494494 Blog *blog = [self findBlogWithDotComID: remoteBlog.blogID inAccount: account];
495495
496- if (!blog && remoteBlog.jetpack ) {
496+ // Previously the `remoteBlog.jetpack` property is used to check if the `blog` is connected to Jetpack.
497+ // However, `jetpack` property indicates whether the Jetpack plugin is installed, and the `jetpack_connection`
498+ // property should be the one we should check here.
499+ // See this calypso code for reference:
500+ // https://github.com/Automattic/wp-calypso/blob/61a1eb0968da82e62d992f8d081a4ab3075c7719/client/dashboard/utils/site-types.ts#L3
501+ if (!blog && remoteBlog.jetpackConnection ) {
497502 blog = [self migrateRemoteJetpackBlog: remoteBlog forAccount: account inContext: context];
498503 }
499504
You can’t perform that action at this time.
0 commit comments