Skip to content

Commit

Permalink
Fix copy-paste documentation mistake 😬
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed Feb 8, 2024
1 parent e13285b commit bc53abd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/reference-guides/block-api/block-metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -527,13 +527,13 @@ It's possible to pass a script handle registered with the [`wp_register_script`]

_Note: An option to pass also an array of view scripts exists since WordPress `6.1.0`._

### View script
### View script module

- Type: `WPDefinedAsset`|`WPDefinedAsset[]` ([learn more](#wpdefinedasset))
- Optional
- Localized: No
- Property: `viewScript`
- Since: `WordPress 5.9.0`
- Property: `viewScriptModule`
- Since: `WordPress 6.5.0`

```json
{ "viewScriptModule": [ "file:./view.js", "example-shared-script-module-id" ] }
Expand Down

0 comments on commit bc53abd

Please sign in to comment.