Skip to content

Commit c6455e0

Browse files
committed
update bootstrap test-theme dependencies
1 parent bdb452b commit c6455e0

6 files changed

Lines changed: 34 additions & 28 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"dev": "npm run start",
4848
"prebuild": "npm run check-engines",
4949
"build": "wp-scripts build src/index.js src/settings/settings.js",
50-
"build-theme-assets": "sass test-themes/bootstrap/styles.scss test-themes/bootstrap/styles.css",
50+
"build-theme-assets": "sass test-themes/bootstrap/bootstrap-with-cssgrid.scss test-themes/bootstrap/bootstrap-with-cssgrid.css",
5151
"update-translations": "scripts/translations/extract-messages.sh && scripts/translations/update-translation-files.sh && scripts/translations/compile-translation-files.sh",
5252
"wp-env": "wp-env",
5353
"check-engines": "wp-scripts check-engines",

test-themes/bootstrap/styles.css renamed to test-themes/bootstrap/bootstrap-with-cssgrid.css

Lines changed: 23 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test-themes/bootstrap/bootstrap-with-cssgrid.css.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

test-themes/bootstrap/functions.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,19 @@ function bootstrap_theme_setup() {
4646
function bootstrap_scripts() {
4747
if ( \WP_Bootstrap_Blocks\Settings::is_bootstrap_5_active() ) {
4848
if ( \WP_Bootstrap_Blocks\Settings::is_css_grid_enabled() ) {
49-
wp_enqueue_script( 'popper.js', 'https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.3/dist/umd/popper.min.js', array(), '2.9.2', true );
50-
wp_enqueue_style( 'bootstrap5-styles', get_template_directory_uri() . '/styles.css', array(), '5.1.0' );
51-
wp_enqueue_script( 'bootstrap5-scripts', 'https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/js/bootstrap.min.js', array( 'popper.js' ), '5.1.0', true );
49+
wp_enqueue_script( 'popper.js', 'https://cdn.jsdelivr.net/npm/@popperjs/core@2.10.2/dist/umd/popper.min.js', array(), '2.10.2', true );
50+
wp_enqueue_style( 'bootstrap5-styles', get_template_directory_uri() . '/bootstrap-with-cssgrid.css', array(), '5.1.3' );
51+
wp_enqueue_script( 'bootstrap5-scripts', 'https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.min.js', array( 'popper.js' ), '5.1.3', true );
5252
} else {
53-
wp_enqueue_script( 'popper.js', 'https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.3/dist/umd/popper.min.js', array(), '2.9.2', true );
54-
wp_enqueue_style( 'bootstrap5-styles', 'https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/css/bootstrap.min.css', array(), '5.1.0' );
55-
wp_enqueue_script( 'bootstrap5-scripts', 'https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/js/bootstrap.min.js', array( 'popper.js' ), '5.1.0', true );
53+
wp_enqueue_script( 'popper.js', 'https://cdn.jsdelivr.net/npm/@popperjs/core@2.10.2/dist/umd/popper.min.js', array(), '2.10.2', true );
54+
wp_enqueue_style( 'bootstrap5-styles', 'https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css', array(), '5.1.3' );
55+
wp_enqueue_script( 'bootstrap5-scripts', 'https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.min.js', array( 'popper.js' ), '5.1.3', true );
5656
}
5757
} else {
58-
wp_enqueue_script( 'jQuery', 'https://code.jquery.com/jquery-3.5.1.slim.min.js', array(), '3.5.1', true );
58+
wp_enqueue_script( 'jQuery', 'https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js', array(), '3.5.1', true );
5959
wp_enqueue_script( 'popper.js', 'https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js', array(), '1.16.1', true );
60-
wp_enqueue_style( 'bootstrap4-styles', 'https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css', array(), '4.5.0' );
61-
wp_enqueue_script( 'bootstrap4-scripts', 'https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js', array( 'jQuery', 'popper.js' ), '4.5.0', true );
60+
wp_enqueue_style( 'bootstrap4-styles', 'https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css', array(), '4.6.1' );
61+
wp_enqueue_script( 'bootstrap4-scripts', 'https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.min.js', array( 'jQuery', 'popper.js' ), '4.6.1', true );
6262
}
6363
}
6464
add_action( 'wp_enqueue_scripts', 'bootstrap_scripts' );

test-themes/bootstrap/styles.css.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)