Use WC_VERSION for js version on enqueue
This commit is contained in:
parent
a7f1894847
commit
68f309203d
|
@ -296,7 +296,7 @@ class WC_Admin_Dashboard {
|
||||||
* Network orders widget
|
* Network orders widget
|
||||||
*/
|
*/
|
||||||
public function network_orders() {
|
public function network_orders() {
|
||||||
wp_enqueue_script( 'network-orders', '/wp-content/plugins/woocommerce/assets/js/admin/network-orders.js', array( 'jquery', 'underscore' ), time(), true );
|
wp_enqueue_script( 'network-orders', '/wp-content/plugins/woocommerce/assets/js/admin/network-orders.js', array( 'jquery', 'underscore' ), WC_VERSION, true );
|
||||||
|
|
||||||
$user = wp_get_current_user();
|
$user = wp_get_current_user();
|
||||||
$blogs = get_blogs_of_user( $user->ID );
|
$blogs = get_blogs_of_user( $user->ID );
|
||||||
|
|
Loading…
Reference in New Issue