-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleanup: Remove unused editor code #22906
Comments
Thanks for reporting! 👍 |
Please, don't remove these just yet. I'll do it on Monday as long with some other unused code. |
No problem @kean - my plan is just to help research and confirm. |
|
Nice! |
Personally I'm not sure why we chose to stop supporting this functionality as it appears quite a bit of effort went into it. Perhaps it was the shift to the Site Editor and the fact that more themes are depending on it. (e.g. there's no "home page" to land in for those themes) |
I think this is due to the post being created on the web, so from the app the So it looks like we technically still have a need for it, albeit via an extreme edge case. Thoughts @kean? IMO if web lets users publish posts without confirming their email (which it does), maybe we should lift this from the app? |
I agree. The risk is low – you'll presumably get an API error if there is a business rule that prevents that action. guard action == .publish It's not checking |
If we agree that email verification shouldn't be necessary for publishing a post, then we could also fix #21472. :D I personally agree with matching the web, too. |
I agree that removing email verification to mirror the web experience makes sense. The earliest references I could find for adding this mechanism are in 965a456 and 5367658, but it offers no explanation for why. I noticed the logic appears to be referenced in the GutenbergViewController. Is there a scenario where the verification is applied there as well? WordPress-iOS/WordPress/Classes/ViewRelated/Gutenberg/GutenbergViewController.swift Line 311 in a80e96e
|
That's correct @dcalhoun - we show it in the block editor. |
My thought is that the email verification might've been a spam site deterrent, a tool to increase marketing contacts, a mechanism to help prevent account lockout, or all of those. I still think it is odd for the web and mobile app experiences to diverge, but is it worth first asking if the current web experience is a bug? |
That's a good thought @dcalhoun. After seeing the context below (see ref) it seems intentional, but it would be good to double-check the latest as it's got some age to it. I also confirmed that a site can be launched without confirming the address. ref: p58i-bwV-p2 |
@kean I'm going to unassign myself from this issue, but please let me know if there's anything else to address. To summarize, it looks like: Can be removed:
Can be removed if it's confirmed that the web's behavior is not a bug:
We could also proceed with the same treatment for Mobile Gutenberg and resolve this issue as pointed out by @SiobhyB. |
Research and confirm if we can remove the following from the project:
EditPageViewController(homepage:)
PostEditorAction.continueFromHomepageEditing
AztecVerificationPromptHelper
The text was updated successfully, but these errors were encountered: