parent
e03f49d700
commit
2e54a01e17
|
@ -168,8 +168,8 @@ class WC_Admin_Assets {
|
||||||
// Meta boxes
|
// Meta boxes
|
||||||
if ( in_array( $screen->id, array( 'product', 'edit-product' ) ) ) {
|
if ( in_array( $screen->id, array( 'product', 'edit-product' ) ) ) {
|
||||||
wp_enqueue_media();
|
wp_enqueue_media();
|
||||||
wp_register_script( 'wc-admin-product-meta-boxes', WC()->plugin_url() . '/assets/js/admin/meta-boxes-product' . $suffix . '.js', array( 'wc-admin-meta-boxes' ), WC_VERSION );
|
wp_register_script( 'wc-admin-product-meta-boxes', WC()->plugin_url() . '/assets/js/admin/meta-boxes-product' . $suffix . '.js', array( 'wc-admin-meta-boxes', 'media-models' ), WC_VERSION );
|
||||||
wp_register_script( 'wc-admin-variation-meta-boxes', WC()->plugin_url() . '/assets/js/admin/meta-boxes-product-variation' . $suffix . '.js', array( 'wc-admin-meta-boxes', 'serializejson' ), WC_VERSION );
|
wp_register_script( 'wc-admin-variation-meta-boxes', WC()->plugin_url() . '/assets/js/admin/meta-boxes-product-variation' . $suffix . '.js', array( 'wc-admin-meta-boxes', 'serializejson', 'media-models' ), WC_VERSION );
|
||||||
|
|
||||||
wp_enqueue_script( 'wc-admin-product-meta-boxes' );
|
wp_enqueue_script( 'wc-admin-product-meta-boxes' );
|
||||||
wp_enqueue_script( 'wc-admin-variation-meta-boxes' );
|
wp_enqueue_script( 'wc-admin-variation-meta-boxes' );
|
||||||
|
|
Loading…
Reference in New Issue