-
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.
Script Modules API: update the code and move it to the compat/wordpre…
…ss-6.5 folder (#57778) * Move modules api to 6.5 folder * Update functions to use wp_modules instead of gutenberg_modules * Prevent class redeclaration * Add classic themes conditional * Yet another script position movement * Add gutenberg_*_module deprecations * Add correct version deprecations * Add correct version deprecations * Use correct order for module hooks * Rename module functions to script_module * Rename module functions to script_module * Update files from WP Core Includes this PR WordPress/wordpress-develop#5931 * Fix deprecated version and rename experimental file * Add warning to upcoming deleted file * Refactor file to use only modules * Refactor search block to use only modules * Refactor query block to use only modules * Refactor image block to use only modules * Refactor navigation block to use only modules * Fix some params and add missing DocBlock * Update DEWP readme * Remove tests This code is now tested in WordPress Core. * Update enqueue in new e2e tests * Fix wrong print function names * Remove unnecessary extra argument * Add missing function * Fix redeclared class problem Fixes an issue in PHP 7.0 where we'd see a redeclared class fatal error. * Remove we from docs --------- Co-authored-by: Luis Herranz <luisherranz@gmail.com> Co-authored-by: Jon Surrell <sirreal@users.noreply.github.com>
- Loading branch information
1 parent
b3fdade
commit 01fb505
Showing
42 changed files
with
830 additions
and
1,100 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
Oops, something went wrong.