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