Skip to content

Commit

Permalink
Clarify usage of 'isUsingWpComRestApi'
Browse files Browse the repository at this point in the history
Co-authored-by: Stefanos Togoulidis <stefanostogoulidis@gmail.com>
  • Loading branch information
Siobhan Bamber and hypest authored May 13, 2022
1 parent 5f087bf commit a96f115
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2306,7 +2306,7 @@ private GutenbergPropsBuilder getGutenbergPropsBuilder() {
String wpcomLocaleSlug = languageString.replace("_", "-").toLowerCase(Locale.ENGLISH);

// this.mIsXPostsCapable may return true for non-WP.com sites, but the app only supports xPosts for P2-based
// WP.com sites.
// 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);

Expand Down

0 comments on commit a96f115

Please sign in to comment.