Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Apr 17, 2024
1 parent cfa2a6c commit 23f4470
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/plugins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ _Usage_
// Using ES5 syntax
var el = React.createElement;
var Fragment = wp.element.Fragment;
var PluginSidebar = wp.editor.PluginSidebar;
var PluginSidebar = wp.editPost.PluginSidebar;
var PluginSidebarMoreMenuItem = wp.editPost.PluginSidebarMoreMenuItem;
var registerPlugin = wp.plugins.registerPlugin;
var moreIcon = React.createElement( 'svg' ); //... svg element.
Expand Down Expand Up @@ -123,8 +123,7 @@ registerPlugin( 'plugin-name', {

```js
// Using ESNext syntax
import { PluginSidebar } from '@wordpress/editor';
import { PluginSidebarMoreMenuItem } from '@wordpress/edit-post';
import { PluginSidebar, PluginSidebarMoreMenuItem } from '@wordpress/edit-post';
import { registerPlugin } from '@wordpress/plugins';
import { more } from '@wordpress/icons';

Expand Down

0 comments on commit 23f4470

Please sign in to comment.