Skip to content

Commit

Permalink
docs: correction in plugin-sidebar-0.md (#69268)
Browse files Browse the repository at this point in the history
Code samples correctly identify `PluginSidebar` as requiring the `wp-editor` dependency, but the how-to text still references `wp-edit-post`.

Co-authored-by: kellymears <[email protected]>
Co-authored-by: t-hamano <[email protected]>
  • Loading branch information
3 people authored and Kallyan01 committed Feb 24, 2025
1 parent 4e0c908 commit cfd58a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/how-to-guides/plugin-sidebar-0.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Add the following code to a JavaScript file called `plugin-sidebar.js` and save
} )( window.wp, window.React );
```

For this code to work, those utilities need to be available in the browser, so you must specify `wp-plugins`, `wp-edit-post`, and `react` as dependencies of your script.
For this code to work, those utilities need to be available in the browser, so you must specify `wp-plugins`, `wp-editor`, and `react` as dependencies of your script.

Here is the PHP code to register your script and specify the dependencies:

Expand Down

0 comments on commit cfd58a0

Please sign in to comment.