Skip to content
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

Latest comments: API v2 #26113

Merged
merged 1 commit into from Oct 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/block-library/src/latest-comments/block.json
@@ -1,4 +1,5 @@
{
"apiVersion": 2,
"name": "core/latest-comments",
"category": "widgets",
"attributes": {
Expand Down
6 changes: 3 additions & 3 deletions packages/block-library/src/latest-comments/edit.js
@@ -1,7 +1,7 @@
/**
* WordPress dependencies
*/
import { InspectorControls } from '@wordpress/block-editor';
import { InspectorControls, useBlockProps } from '@wordpress/block-editor';
import {
Disabled,
PanelBody,
Expand Down Expand Up @@ -33,7 +33,7 @@ export default function LatestComments( { attributes, setAttributes } ) {
} = attributes;

return (
<>
<div { ...useBlockProps() }>
<InspectorControls>
<PanelBody title={ __( 'Latest comments settings' ) }>
<ToggleControl
Expand Down Expand Up @@ -77,6 +77,6 @@ export default function LatestComments( { attributes, setAttributes } ) {
attributes={ attributes }
/>
</Disabled>
</>
</div>
);
}