-
Notifications
You must be signed in to change notification settings - Fork 8
Update/site options schema properties 2 #9
base: master
Are you sure you want to change the base?
Update/site options schema properties 2 #9
Conversation
@fjarrett this is ready to merge :) |
'title' => array( | ||
'description' => __( 'Site Title' ), | ||
|
||
// Reference: https://docs.google.com/spreadsheets/d/1vI-s8MjbEllCR0_0BmBgaGvKNm1Fa42MCoqaKCwbRyQ/edit#gid=0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this code comment.
@kjbenk Can you make sure there are tests for each of these? |
'type' => 'string', | ||
'screen' => 'discussion', | ||
'context' => array( 'view', 'edit' ), | ||
'public' => true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure it makes sense to introduce new screen
and public
attributes in the schema.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that maybe the screen attribute is not that useful but since some options are private and others are public we will need a mapping system to determine what options can be retrieved as an unauthenticated user...right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ill need a mapping system to determine what options can be retrieved as an unauthenticated user...right?
Right — that's context
. view
means "frontend", and edit
means "editor" (or backend).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah ok...that makes more sense now. I will remove the public and screen attribute.
* UPDATED: The unit test to check for the item schema has been updated to account for all the site options
* REMOVED: Screen and public attribute from each property
Adds all the site options based on the google sheet.
https://docs.google.com/spreadsheets/d/1vI-s8MjbEllCR0_0BmBgaGvKNm1Fa42MCoqaKCwbRyQ/edit#gid=0