Skip to content

Commit

Permalink
Review fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoPavlinic98 committed Jan 27, 2025
1 parent 18b62bd commit 2d221c3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions includes/SetupWizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function setup_wizard() {
'woocommerce_admin_styles',
WC()->plugin_url() . '/assets/css/admin.css',
array(),
WPO_WCPDF_VERSION
WC_VERSION
);
wp_register_script(
'wpo-wcpdf-media-upload',
Expand All @@ -115,6 +115,12 @@ public function setup_wizard() {
array( 'jquery', 'wpo-wcpdf-media-upload' ),
WPO_WCPDF_VERSION
);
wp_register_script(
'select2',
WC()->plugin_url() . '/assets/js/select2/select2.full.min.js',
array( 'jquery' ),
WC_VERSION
);
wp_enqueue_media();

$step_keys = array_keys( $this->steps );
Expand Down Expand Up @@ -155,9 +161,9 @@ public function setup_wizard_header() {
<title><?php esc_html_e( 'PDF Invoices & Packing Slips for WooCommerce &rsaquo; Setup Wizard', 'woocommerce-pdf-invoices-packing-slips' ); ?></title>
<?php wp_print_scripts( 'wpo-wcpdf-setup' ); ?>
<?php wp_print_scripts( 'wpo-wcpdf-setup-confetti' ); ?>
<?php wp_print_scripts( 'select2' ); ?>
<?php do_action( 'admin_print_styles' ); ?>
<?php do_action( 'admin_head' ); ?>
<script src="<?php echo WC()->plugin_url() . '/assets/js/select2/select2.full.min.js'; ?>"></script>
</head>
<body class="wpo-wcpdf-setup wp-core-ui">
<?php if( $this->step == 'good-to-go' ) { echo "<div id='confetti'></div>"; } ?>
Expand Down

0 comments on commit 2d221c3

Please sign in to comment.