updated theme GeneratePress version 3.3.1

This commit is contained in:
2023-10-22 22:20:33 +00:00
committed by Gitium
parent 9507c3bb08
commit 60d1e2a750
5 changed files with 11 additions and 7 deletions

View File

@ -204,7 +204,7 @@ class GeneratePress_Dashboard {
wp_enqueue_script(
'generate-dashboard',
get_template_directory_uri() . '/assets/dist/dashboard.js',
array( 'wp-api', 'wp-i18n', 'wp-components', 'wp-element', 'wp-api-fetch' ),
array( 'wp-api', 'wp-i18n', 'wp-components', 'wp-element', 'wp-api-fetch', 'wp-hooks', 'wp-polyfill' ),
GENERATE_VERSION,
true
);

View File

@ -340,7 +340,7 @@ function generate_do_control_inline_scripts() {
'generate-customizer-controls',
trailingslashit( get_template_directory_uri() ) . 'assets/dist/customizer.js',
// We're including wp-color-picker for localized strings, nothing more.
array( 'customize-controls', 'wp-i18n', 'wp-components', 'wp-element', 'jquery', 'customize-base', 'wp-color-picker' ),
array( 'lodash', 'react', 'react-dom', 'wp-components', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'jquery', 'customize-base', 'customize-controls', 'wp-color-picker' ),
GENERATE_VERSION,
true
);