Open guarani opened 4 years ago
I've also noticed WordPress.com sites with plugins installed can't be switched to private using WPiOS but can be switched using WPAndroid. This happens because of:
Tested on WPiOS 15.8 and WPAndroid 15.9 (beta)
WPiOS doesn't show a Language option on the Settings screen (I'd expect to see it under the GENERAL section, below Time Zone) for WordPress.com sites with plugins installed. Interestingly, neither does WPAndroid.
Based on the following comment though, I think the fact that the Language option is not present might be an oversight:
This issue has been marked as stale because:
[Pri] Blocker
, [Pri] High
, or good first issue
.Please comment with an update if you believe this issue is still valid or if it can be closed. This issue will also be reviewed for validity and priority during regularly scheduled triage sessions.
Expected behavior
By its name alone, one would expect
Blog.isHostedAtWPcom
to betrue
for all WordPress.com sites, whether or not they have plugins installed. It's nottrue
in this scenario, because it's actually just an indication of whether or not Jetpack is installed. So it would be better to rename it to make this clearer.Actual behavior
Blog.isHostedAtWPcom
isfalse
for WordPress.com sites with plugins installed because it's actually just the negation of!blog.jetpack
.The current naming is likely the reason @-mentions is disabled on WordPress.com sites with plugins installed. So there are likely real negative consequences to keeping the current naming.
Steps to reproduce the behavior
isHostedOnWPcom
isfalse
/0
: https://github.com/wordpress-mobile/WordPress-iOS/blob/b347ef8c2488401c1df006e548cc2d5aee42c8d8/WordPress/Classes/Services/BlogService.m#L723Proposed solution
I think we should rename it to
Blog.isWPComSimpleSite
. This would involve renaming the variable in code as well as in the Core Data data model.Tested on iPhone, iOS 14, WPiOS https://github.com/wordpress-mobile/WordPress-iOS/commit/6895ab8995432202b0aa5ab0ebe96939c49ff2b6