Reorganizes post options in Settings. - #4767
Conversation
|
Tested again, everything's looking good to me. |
| [self configureDefaultPostFormatCell]; | ||
| return self.defaultPostFormatCell; | ||
| } | ||
| break; |
There was a problem hiding this comment.
This is nitpicky code style stuff, but for consistency within the file maybe remove the parenthesis in the case statements and remove the breaks since each case returns?
There was a problem hiding this comment.
The style consistency of the switch cases and breaks in this file are all over the place. I'm going to leave this alone for now as it would require touching a lot more code than the context of this PR.
|
Hiya @kurzee :) I left some super nitpicky code style comments. I tested settings on wpcom blogs with both admin and non-admin users, and a self-hosted test blog via XML-RPC. Everything worked as described. (Yay!) I did notice an edge case that is probably not a blocker (existing issue I think) but I want to make a note of it here. Steps to reproduce:
I recommend we open an new issue for the wonky behavior rather than draw out this patch any further. :)
|
|
Merging. Thanks @aerych! Will create a separate issue for the edge case mentioned above. |
…section Reorganizes post options in Settings.
Resolves the conversation and issues raised in #4756, #4757 and #4766.
After much thought and conversation with @aerych. The best approach moving forward allows for both admin and non-admin users of XML-RPC sites to toggle default post options under a new section in settings titled "This Device".
This PR also moves "Geotagging" under "This Device" for all users, XML-RPC and REST.
REST users only have default post options available if they are admins of the connected site and under the section "Writing". Non-admins will instead default to what the admin has selected for the site. (This is in parity with Calypso on the web)
REST Testing:
REST Testing:
XML-RPC Testing:
@aerych please review and @mattmiklic on the text review, one more time. 😃Thanks so much for your input guys.