-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow multiple view scripts per block (#36176)
* Handle arrays in viewScript * Split modal script in navigation's viewScript * Enqueue modal script when needed * Add function in the 6.0-compat folder * Indentation fix * Add webpack changes to build also view files prefixed with view * fix the schema * PHPCS fix (= alignment) * remove unnecessary line * remove in_footer arg * handle script translations * Add a wp_enqueue_block_script function * rename function * Update lib/blocks.php Co-authored-by: Greg Ziółkowski <[email protected]> * allow script translations by defining a textdomain * reverse i18n logic * typo * revert navigation block changes Co-authored-by: Grzegorz Ziolkowski <[email protected]>
- Loading branch information
Showing
5 changed files
with
178 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters