Fix another TODO to include admin styles for the modal

This commit is contained in:
Boro Sitnikovski 2018-06-06 10:25:27 +02:00
parent 35ad51456c
commit d5c4f794c6
1 changed files with 3 additions and 1 deletions

View File

@ -25,7 +25,9 @@ class WC_Beta_Tester_Admin_Assets {
public function admin_scripts() {
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
// TODO: Figure out why the modal appears only on WC screens. Need some other dependencies?
// Need admin styles for the modal.
wp_enqueue_style( 'woocommerce_admin_styles' );
wp_register_script( 'wc-beta-tester-version-info', WC_Beta_Tester::instance()->plugin_url() . '/assets/js/version-information' . $suffix . '.js', array( 'wc-backbone-modal' ), WC_BETA_TESTER_VERSION );
// TODO: Get version programmatically.