Skip to content

Commit

Permalink
Merge pull request #16547 from wordpress-mobile/gutenberg/chore/updat…
Browse files Browse the repository at this point in the history
…e-xpost-comment-for-clarification

[RNMobile] Update code comment for clarity
  • Loading branch information
hypest authored May 16, 2022
2 parents 4792eb1 + a96f115 commit 5d6fcc4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2305,7 +2305,9 @@ private GutenbergPropsBuilder getGutenbergPropsBuilder() {
String languageString = LocaleManager.getLanguage(EditPostActivity.this);
String wpcomLocaleSlug = languageString.replace("_", "-").toLowerCase(Locale.ENGLISH);

// If this.mIsXPostsCapable has not been set, default to allowing xPosts
// this.mIsXPostsCapable may return true for non-WP.com sites, but the app only supports xPosts for P2-based
// WP.com sites so, gate with `isUsingWpComRestApi()`
// If this.mIsXPostsCapable has not been set, default to allowing xPosts.
boolean enableXPosts = mSite.isUsingWpComRestApi() && (mIsXPostsCapable == null || mIsXPostsCapable);

EditorTheme editorTheme = mEditorThemeStore.getEditorThemeForSite(mSite);
Expand Down

0 comments on commit 5d6fcc4

Please sign in to comment.