-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Output post classes in the editor #6716
Changes from 1 commit
9ba5965
e6bb75c
c3f58eb
8986cbb
4b07732
a4aef1d
0b6dc03
4a7051f
c393ade
4b97352
3124c09
0657411
715274a
baf2b50
48c74a2
5586415
d24ee39
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2359,9 +2359,9 @@ public function get_item_schema() { | |
); | ||
|
||
$schema['properties']['class_list'] = array( | ||
'description' => __( 'An array of the class names for the post container element.' ), | ||
'description' => __( 'An array of the CSS class names for the post container element.' ), | ||
'type' => 'array', | ||
'context' => array( 'view', 'edit', 'embed' ), | ||
'context' => array( 'view', 'edit' ), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure about the context. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah The There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you for the information. It's indeed very helpful in understanding when to use the embed context. |
||
'items' => array( | ||
'type' => 'string', | ||
), | ||
|
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.
We should add a
readonly
keyword.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.
Good catch. Fixed in e4c1641
Thanks.