From 32e51a7cbd315dfaf29d3094aad0d141608caf0e Mon Sep 17 00:00:00 2001 From: Ryan Welcher Date: Thu, 19 Apr 2018 16:04:45 -0400 Subject: [PATCH 01/16] Introduce fill slot for the Status & Availbilty panel --- .../sidebar/plugin-post-status-visibility/index.js | 7 +++++++ edit-post/components/sidebar/post-status/index.js | 5 +++++ edit-post/index.js | 3 +++ 3 files changed, 15 insertions(+) create mode 100644 edit-post/components/sidebar/plugin-post-status-visibility/index.js diff --git a/edit-post/components/sidebar/plugin-post-status-visibility/index.js b/edit-post/components/sidebar/plugin-post-status-visibility/index.js new file mode 100644 index 0000000000000..3fbb70d0f0f50 --- /dev/null +++ b/edit-post/components/sidebar/plugin-post-status-visibility/index.js @@ -0,0 +1,7 @@ +/** + * Defines extensibility lot for the Status & Visibility panel + */ + +import { createSlotFill } from "../../../../components/slot-fill"; + +export default createSlotFill( 'PluginPostStatusVisibility' ); diff --git a/edit-post/components/sidebar/post-status/index.js b/edit-post/components/sidebar/post-status/index.js index 0143013fa0172..42be72ee5b233 100644 --- a/edit-post/components/sidebar/post-status/index.js +++ b/edit-post/components/sidebar/post-status/index.js @@ -17,6 +17,8 @@ import PostSticky from '../post-sticky'; import PostAuthor from '../post-author'; import PostFormat from '../post-format'; import PostPendingStatus from '../post-pending-status'; +import PluginPostStatusVisibility from '../plugin-post-status-visibility'; +import PanelRow from "../../../../components/panel/row"; /** * Module Constants @@ -32,6 +34,9 @@ function PostStatus( { isOpened, onTogglePanel } ) { + + + ); diff --git a/edit-post/index.js b/edit-post/index.js index 8858c482c037a..7f36b55edf5dc 100644 --- a/edit-post/index.js +++ b/edit-post/index.js @@ -20,6 +20,8 @@ import store from './store'; import { initializeMetaBoxState } from './store/actions'; import Editor from './editor'; + + /** * Configure heartbeat to refresh the wp-api nonce, keeping the editor * authorization intact. @@ -104,5 +106,6 @@ export function initializeEditor( id, post, settings ) { } ); } +export { default as PluginPostStatusVisibility } from './components/sidebar/plugin-post-status-visibility'; export { default as PluginSidebar } from './components/sidebar/plugin-sidebar'; export { default as PluginSidebarMoreMenuItem } from './components/header/plugin-sidebar-more-menu-item'; From 6dc9667ea835ec361b6ef449e00c6970a4bd8578 Mon Sep 17 00:00:00 2001 From: Ryan Welcher Date: Thu, 19 Apr 2018 21:49:29 -0400 Subject: [PATCH 02/16] lint fixes --- .../components/sidebar/plugin-post-status-visibility/index.js | 2 +- edit-post/components/sidebar/post-status/index.js | 2 +- edit-post/index.js | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/edit-post/components/sidebar/plugin-post-status-visibility/index.js b/edit-post/components/sidebar/plugin-post-status-visibility/index.js index 3fbb70d0f0f50..1caae07863c3c 100644 --- a/edit-post/components/sidebar/plugin-post-status-visibility/index.js +++ b/edit-post/components/sidebar/plugin-post-status-visibility/index.js @@ -2,6 +2,6 @@ * Defines extensibility lot for the Status & Visibility panel */ -import { createSlotFill } from "../../../../components/slot-fill"; +import { createSlotFill } from '../../../../components/slot-fill'; export default createSlotFill( 'PluginPostStatusVisibility' ); diff --git a/edit-post/components/sidebar/post-status/index.js b/edit-post/components/sidebar/post-status/index.js index 42be72ee5b233..c66537eb16881 100644 --- a/edit-post/components/sidebar/post-status/index.js +++ b/edit-post/components/sidebar/post-status/index.js @@ -18,7 +18,7 @@ import PostAuthor from '../post-author'; import PostFormat from '../post-format'; import PostPendingStatus from '../post-pending-status'; import PluginPostStatusVisibility from '../plugin-post-status-visibility'; -import PanelRow from "../../../../components/panel/row"; +import PanelRow from '../../../../components/panel/row'; /** * Module Constants diff --git a/edit-post/index.js b/edit-post/index.js index 7f36b55edf5dc..9b4c094c2dafc 100644 --- a/edit-post/index.js +++ b/edit-post/index.js @@ -20,8 +20,6 @@ import store from './store'; import { initializeMetaBoxState } from './store/actions'; import Editor from './editor'; - - /** * Configure heartbeat to refresh the wp-api nonce, keeping the editor * authorization intact. From 98ff5396300f4f46e92268f3228c9f9cb5e58b3f Mon Sep 17 00:00:00 2001 From: Ryan Welcher Date: Fri, 20 Apr 2018 09:22:03 -0400 Subject: [PATCH 03/16] Changing import statements to use the @wordpress package --- .../components/sidebar/plugin-post-status-visibility/index.js | 2 +- edit-post/components/sidebar/post-status/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/edit-post/components/sidebar/plugin-post-status-visibility/index.js b/edit-post/components/sidebar/plugin-post-status-visibility/index.js index 1caae07863c3c..8d98bdfa98f6d 100644 --- a/edit-post/components/sidebar/plugin-post-status-visibility/index.js +++ b/edit-post/components/sidebar/plugin-post-status-visibility/index.js @@ -2,6 +2,6 @@ * Defines extensibility lot for the Status & Visibility panel */ -import { createSlotFill } from '../../../../components/slot-fill'; +import { createSlotFill } from '@wordpress/components'; export default createSlotFill( 'PluginPostStatusVisibility' ); diff --git a/edit-post/components/sidebar/post-status/index.js b/edit-post/components/sidebar/post-status/index.js index c66537eb16881..c7bd4cd383253 100644 --- a/edit-post/components/sidebar/post-status/index.js +++ b/edit-post/components/sidebar/post-status/index.js @@ -18,7 +18,7 @@ import PostAuthor from '../post-author'; import PostFormat from '../post-format'; import PostPendingStatus from '../post-pending-status'; import PluginPostStatusVisibility from '../plugin-post-status-visibility'; -import PanelRow from '../../../../components/panel/row'; +import { PanelRow } from '@wordpress/components'; /** * Module Constants From 3139cb62cc55e9eb2ae1ee4a50ac902ab25d4118 Mon Sep 17 00:00:00 2001 From: Ryan Welcher Date: Fri, 20 Apr 2018 09:40:25 -0400 Subject: [PATCH 04/16] Fix to remove duplicate import --- edit-post/components/sidebar/post-status/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/edit-post/components/sidebar/post-status/index.js b/edit-post/components/sidebar/post-status/index.js index c7bd4cd383253..d91715fa23685 100644 --- a/edit-post/components/sidebar/post-status/index.js +++ b/edit-post/components/sidebar/post-status/index.js @@ -2,7 +2,7 @@ * WordPress dependencies */ import { __ } from '@wordpress/i18n'; -import { PanelBody } from '@wordpress/components'; +import { PanelBody, PanelRow } from '@wordpress/components'; import { compose } from '@wordpress/element'; import { withSelect, withDispatch } from '@wordpress/data'; @@ -18,7 +18,6 @@ import PostAuthor from '../post-author'; import PostFormat from '../post-format'; import PostPendingStatus from '../post-pending-status'; import PluginPostStatusVisibility from '../plugin-post-status-visibility'; -import { PanelRow } from '@wordpress/components'; /** * Module Constants From ad7631c3f3b3a64befbea1e410241a72e05c70f2 Mon Sep 17 00:00:00 2001 From: Ryan Welcher Date: Fri, 20 Apr 2018 09:53:11 -0400 Subject: [PATCH 05/16] Removing extra whitespace --- edit-post/components/sidebar/post-status/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edit-post/components/sidebar/post-status/index.js b/edit-post/components/sidebar/post-status/index.js index d91715fa23685..bc536241f2eb8 100644 --- a/edit-post/components/sidebar/post-status/index.js +++ b/edit-post/components/sidebar/post-status/index.js @@ -2,7 +2,7 @@ * WordPress dependencies */ import { __ } from '@wordpress/i18n'; -import { PanelBody, PanelRow } from '@wordpress/components'; +import { PanelBody, PanelRow } from '@wordpress/components'; import { compose } from '@wordpress/element'; import { withSelect, withDispatch } from '@wordpress/data'; From 3940ad3a3d94e3ce96d6accab3999d9580f97778 Mon Sep 17 00:00:00 2001 From: Ryan Welcher Date: Fri, 20 Apr 2018 11:17:53 -0400 Subject: [PATCH 06/16] Fixes typo --- .../components/sidebar/plugin-post-status-visibility/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edit-post/components/sidebar/plugin-post-status-visibility/index.js b/edit-post/components/sidebar/plugin-post-status-visibility/index.js index 8d98bdfa98f6d..4a972e5008de3 100644 --- a/edit-post/components/sidebar/plugin-post-status-visibility/index.js +++ b/edit-post/components/sidebar/plugin-post-status-visibility/index.js @@ -1,5 +1,5 @@ /** - * Defines extensibility lot for the Status & Visibility panel + * Defines as extensibility slot for the Status & Visibility panel */ import { createSlotFill } from '@wordpress/components'; From 8591618b9d423f2c439030c70de1d0b1ab5eef6a Mon Sep 17 00:00:00 2001 From: Ryan Welcher Date: Wed, 2 May 2018 10:04:02 -0400 Subject: [PATCH 07/16] Rename slot to PluginPostStatusInfo --- .../index.js | 2 +- edit-post/components/sidebar/post-status/index.js | 4 ++-- edit-post/index.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename edit-post/components/sidebar/{plugin-post-status-visibility => plugin-post-status-info}/index.js (67%) diff --git a/edit-post/components/sidebar/plugin-post-status-visibility/index.js b/edit-post/components/sidebar/plugin-post-status-info/index.js similarity index 67% rename from edit-post/components/sidebar/plugin-post-status-visibility/index.js rename to edit-post/components/sidebar/plugin-post-status-info/index.js index 4a972e5008de3..cbc18a43d37ac 100644 --- a/edit-post/components/sidebar/plugin-post-status-visibility/index.js +++ b/edit-post/components/sidebar/plugin-post-status-info/index.js @@ -4,4 +4,4 @@ import { createSlotFill } from '@wordpress/components'; -export default createSlotFill( 'PluginPostStatusVisibility' ); +export default createSlotFill( 'PluginPostStatusInfo' ); diff --git a/edit-post/components/sidebar/post-status/index.js b/edit-post/components/sidebar/post-status/index.js index bc536241f2eb8..2be50a517c549 100644 --- a/edit-post/components/sidebar/post-status/index.js +++ b/edit-post/components/sidebar/post-status/index.js @@ -17,7 +17,7 @@ import PostSticky from '../post-sticky'; import PostAuthor from '../post-author'; import PostFormat from '../post-format'; import PostPendingStatus from '../post-pending-status'; -import PluginPostStatusVisibility from '../plugin-post-status-visibility'; +import PluginPostStatusInfo from '../plugin-post-status-info'; /** * Module Constants @@ -34,7 +34,7 @@ function PostStatus( { isOpened, onTogglePanel } ) { - + diff --git a/edit-post/index.js b/edit-post/index.js index 9b4c094c2dafc..2a64d35d9b357 100644 --- a/edit-post/index.js +++ b/edit-post/index.js @@ -104,6 +104,6 @@ export function initializeEditor( id, post, settings ) { } ); } -export { default as PluginPostStatusVisibility } from './components/sidebar/plugin-post-status-visibility'; +export { default as PluginPostStatusInfo } from './components/sidebar/plugin-post-status-info'; export { default as PluginSidebar } from './components/sidebar/plugin-sidebar'; export { default as PluginSidebarMoreMenuItem } from './components/header/plugin-sidebar-more-menu-item'; From 1c13ac0e8fcf21e5fa9600e07c0e7f1fc1bb20b6 Mon Sep 17 00:00:00 2001 From: Ryan Welcher Date: Wed, 2 May 2018 16:21:28 -0400 Subject: [PATCH 08/16] Structural changes and only exporting the Fill to the public api --- .../sidebar/plugin-post-status-info/index.js | 18 ++++++++++++++++-- .../components/sidebar/post-status/index.js | 6 ++---- edit-post/index.js | 2 +- 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/edit-post/components/sidebar/plugin-post-status-info/index.js b/edit-post/components/sidebar/plugin-post-status-info/index.js index cbc18a43d37ac..65069c3f003c9 100644 --- a/edit-post/components/sidebar/plugin-post-status-info/index.js +++ b/edit-post/components/sidebar/plugin-post-status-info/index.js @@ -1,7 +1,21 @@ /** * Defines as extensibility slot for the Status & Visibility panel */ +import { createSlotFill, PanelRow } from '@wordpress/components'; -import { createSlotFill } from '@wordpress/components'; +export const { Fill, Slot } = createSlotFill( 'PluginPostStatusInfo' ); -export default createSlotFill( 'PluginPostStatusInfo' ); +const PluginPostStatusInfo = ( { children } ) => { + return ( + + {children} + + ) +}; + +PluginPostStatusInfo.Slot = () => ( + + + +); +export default PluginPostStatusInfo; diff --git a/edit-post/components/sidebar/post-status/index.js b/edit-post/components/sidebar/post-status/index.js index 2be50a517c549..141795d047b22 100644 --- a/edit-post/components/sidebar/post-status/index.js +++ b/edit-post/components/sidebar/post-status/index.js @@ -2,7 +2,7 @@ * WordPress dependencies */ import { __ } from '@wordpress/i18n'; -import { PanelBody, PanelRow } from '@wordpress/components'; +import { PanelBody } from '@wordpress/components'; import { compose } from '@wordpress/element'; import { withSelect, withDispatch } from '@wordpress/data'; @@ -33,9 +33,7 @@ function PostStatus( { isOpened, onTogglePanel } ) { - - - + ); diff --git a/edit-post/index.js b/edit-post/index.js index 2a64d35d9b357..e92aef8735e75 100644 --- a/edit-post/index.js +++ b/edit-post/index.js @@ -104,6 +104,6 @@ export function initializeEditor( id, post, settings ) { } ); } -export { default as PluginPostStatusInfo } from './components/sidebar/plugin-post-status-info'; +export { Fill as PluginPostStatusInfo } from './components/sidebar/plugin-post-status-info'; export { default as PluginSidebar } from './components/sidebar/plugin-sidebar'; export { default as PluginSidebarMoreMenuItem } from './components/header/plugin-sidebar-more-menu-item'; From 51b72c4192c9a01b4514dd5a73beec32d734d144 Mon Sep 17 00:00:00 2001 From: Ryan Welcher Date: Wed, 2 May 2018 16:24:00 -0400 Subject: [PATCH 09/16] Lint fixes --- .../sidebar/plugin-post-status-info/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/edit-post/components/sidebar/plugin-post-status-info/index.js b/edit-post/components/sidebar/plugin-post-status-info/index.js index 65069c3f003c9..53064794c3e83 100644 --- a/edit-post/components/sidebar/plugin-post-status-info/index.js +++ b/edit-post/components/sidebar/plugin-post-status-info/index.js @@ -8,14 +8,14 @@ export const { Fill, Slot } = createSlotFill( 'PluginPostStatusInfo' ); const PluginPostStatusInfo = ( { children } ) => { return ( - {children} + { children } - ) + ); }; PluginPostStatusInfo.Slot = () => ( - - - + + + ); export default PluginPostStatusInfo; From 9da8053259b09f8b974ecfeb4a886112080361a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Grzegorz=20=28Greg=29=20Zi=C3=B3=C5=82kowski?= Date: Fri, 4 May 2018 09:00:53 +0200 Subject: [PATCH 10/16] Edit Post: Use PluginPostStatusInfo alias for Fill --- .../sidebar/plugin-post-status-info/index.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/edit-post/components/sidebar/plugin-post-status-info/index.js b/edit-post/components/sidebar/plugin-post-status-info/index.js index 53064794c3e83..0c614be092603 100644 --- a/edit-post/components/sidebar/plugin-post-status-info/index.js +++ b/edit-post/components/sidebar/plugin-post-status-info/index.js @@ -3,15 +3,7 @@ */ import { createSlotFill, PanelRow } from '@wordpress/components'; -export const { Fill, Slot } = createSlotFill( 'PluginPostStatusInfo' ); - -const PluginPostStatusInfo = ( { children } ) => { - return ( - - { children } - - ); -}; +export const { Fill: PluginPostStatusInfo, Slot } = createSlotFill( 'PluginPostStatusInfo' ); PluginPostStatusInfo.Slot = () => ( From bbc9da9a89c26b765b725581203f61c9fed9ed04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Grzegorz=20=28Greg=29=20Zi=C3=B3=C5=82kowski?= Date: Fri, 4 May 2018 09:12:28 +0200 Subject: [PATCH 11/16] Edit Post: Fix export for the PluginPostStatusInfo --- edit-post/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edit-post/index.js b/edit-post/index.js index e92aef8735e75..2a64d35d9b357 100644 --- a/edit-post/index.js +++ b/edit-post/index.js @@ -104,6 +104,6 @@ export function initializeEditor( id, post, settings ) { } ); } -export { Fill as PluginPostStatusInfo } from './components/sidebar/plugin-post-status-info'; +export { default as PluginPostStatusInfo } from './components/sidebar/plugin-post-status-info'; export { default as PluginSidebar } from './components/sidebar/plugin-sidebar'; export { default as PluginSidebarMoreMenuItem } from './components/header/plugin-sidebar-more-menu-item'; From 183beaf93ab70c3e0a35c1b3910eaf65ac8fb5d8 Mon Sep 17 00:00:00 2001 From: Ryan Welcher Date: Fri, 4 May 2018 08:44:04 -0400 Subject: [PATCH 12/16] Adding documentation notes --- edit-post/README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/edit-post/README.md b/edit-post/README.md index fc069f7482c37..7c4c27c1ef2d3 100644 --- a/edit-post/README.md +++ b/edit-post/README.md @@ -90,3 +90,32 @@ The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug st - Required: No +## SlotsFill +SlotFills provide plugin or theme authors the ability to add items into the Gutenberg interface. While these slots appear in certain locations, +it should be noted that they are named and implemented around the function they serve and not their current location, which may change in future iterations. + +### PluginPostStatusInfo + +_Example_ +```jsx +var el = wp.element.createElement; +var __ = wp.i18n.__; +var registerPlugin = wp.plugins.registerPlugin; +var PluginPostStatusInfo = wp.editPost.PluginPostStatusInfo; + +function MyPlugin() { + return ( + el( + PluginPostStatusInfo, + {}, + __( 'My post status info' ) + ) + ); +}; + +registerPlugin( 'my-plugin', { + render: MyPlugin, +} ) +``` + + From 198a55276197352464942f97a414e392b39bf165 Mon Sep 17 00:00:00 2001 From: Ryan Welcher Date: Fri, 4 May 2018 09:25:41 -0400 Subject: [PATCH 13/16] Fixes typo in SlotFills --- edit-post/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edit-post/README.md b/edit-post/README.md index 7c4c27c1ef2d3..358968adf4bdf 100644 --- a/edit-post/README.md +++ b/edit-post/README.md @@ -90,7 +90,7 @@ The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug st - Required: No -## SlotsFill +## SlotFills SlotFills provide plugin or theme authors the ability to add items into the Gutenberg interface. While these slots appear in certain locations, it should be noted that they are named and implemented around the function they serve and not their current location, which may change in future iterations. From 1ec48fa22a371ba1ebc58fef7b900537e40a9fa9 Mon Sep 17 00:00:00 2001 From: Ryan Welcher Date: Fri, 4 May 2018 09:41:43 -0400 Subject: [PATCH 14/16] Changes the docs --- edit-post/README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/edit-post/README.md b/edit-post/README.md index 358968adf4bdf..886cc74d208a7 100644 --- a/edit-post/README.md +++ b/edit-post/README.md @@ -90,12 +90,11 @@ The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug st - Required: No -## SlotFills -SlotFills provide plugin or theme authors the ability to add items into the Gutenberg interface. While these slots appear in certain locations, -it should be noted that they are named and implemented around the function they serve and not their current location, which may change in future iterations. - ### PluginPostStatusInfo +Currently, this slotFill appears in the Status & Visibility panel of the sidebar. +It should be noted that this is named and implemented around the function it serves and not its location, which may change in future iterations. + _Example_ ```jsx var el = wp.element.createElement; From a71c4e9694515d70415b902168d43f3856baac7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Grzegorz=20=28Greg=29=20Zi=C3=B3=C5=82kowski?= Date: Mon, 7 May 2018 09:55:50 +0200 Subject: [PATCH 15/16] Edit Post: Update documentation for plugins --- edit-post/README.md | 38 +++++++++++++++----------------------- 1 file changed, 15 insertions(+), 23 deletions(-) diff --git a/edit-post/README.md b/edit-post/README.md index 886cc74d208a7..fdfac66c203cc 100644 --- a/edit-post/README.md +++ b/edit-post/README.md @@ -21,6 +21,7 @@ wp.data.dispatch( 'core/edit-post' ).openGeneralSidebar( 'plugin-name/sidebar-na _Example:_ ```jsx +const { __ } = wp.i18n; const { PanelBody } = wp.components; const { PluginSidebar } = wp.editPost; @@ -30,7 +31,7 @@ const MyPluginSidebar = () => ( title="My sidebar title" > - My sidebar content + { __( 'My sidebar content' ) } ); @@ -61,6 +62,7 @@ The text within the component appears as the menu item label. _Example:_ ```jsx +const { __ } = wp.i18n; const { PluginSidebarMoreMenuItem } = wp.editPost; const MySidebarMoreMenuItem = () => ( @@ -68,7 +70,7 @@ const MySidebarMoreMenuItem = () => ( target="my-sidebar" icon="yes" > - My sidebar title + { __( 'My sidebar title' ) } ); ``` @@ -90,31 +92,21 @@ The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug st - Required: No -### PluginPostStatusInfo +### `PluginPostStatusInfo` -Currently, this slotFill appears in the Status & Visibility panel of the sidebar. +Renders a row in the Status & Visibility panel of the Document sidebar. It should be noted that this is named and implemented around the function it serves and not its location, which may change in future iterations. -_Example_ +_Example:_ ```jsx -var el = wp.element.createElement; -var __ = wp.i18n.__; -var registerPlugin = wp.plugins.registerPlugin; -var PluginPostStatusInfo = wp.editPost.PluginPostStatusInfo; - -function MyPlugin() { - return ( - el( - PluginPostStatusInfo, - {}, - __( 'My post status info' ) - ) - ); -}; - -registerPlugin( 'my-plugin', { - render: MyPlugin, -} ) +const { __ } = wp.i18n; +const { PluginPostStatusInfo } = wp.editPost; + +const MyPluginPostStatusInfo = () => ( + + { __( 'My post status info' ) } + +); ``` From 8efddae270b3cb451b39568fefac87e50f5097e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Grzegorz=20=28Greg=29=20Zi=C3=B3=C5=82kowski?= Date: Mon, 7 May 2018 09:57:23 +0200 Subject: [PATCH 16/16] Edit Post: Small tweak with inline comments --- .../components/sidebar/plugin-post-status-info/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/edit-post/components/sidebar/plugin-post-status-info/index.js b/edit-post/components/sidebar/plugin-post-status-info/index.js index 0c614be092603..cbe7efda9f250 100644 --- a/edit-post/components/sidebar/plugin-post-status-info/index.js +++ b/edit-post/components/sidebar/plugin-post-status-info/index.js @@ -1,5 +1,9 @@ /** - * Defines as extensibility slot for the Status & Visibility panel + * Defines as extensibility slot for the Status & Visibility panel. + */ + +/** + * WordPress dependencies */ import { createSlotFill, PanelRow } from '@wordpress/components'; @@ -10,4 +14,5 @@ PluginPostStatusInfo.Slot = () => ( ); + export default PluginPostStatusInfo;