parent
035050c4c0
commit
3e43a19c30
|
@ -399,9 +399,10 @@ function woocommerce_admin_scripts() {
|
|||
|
||||
// Get admin screen id
|
||||
$screen = get_current_screen();
|
||||
$wc_screen_id = strtolower( __( 'WooCommerce', 'woocommerce' ) );
|
||||
|
||||
// WooCommerce admin pages
|
||||
if ( in_array( $screen->id, apply_filters( 'woocommerce_screen_ids', array( 'toplevel_page_woocommerce', 'woocommerce_page_woocommerce_settings', 'woocommerce_page_woocommerce_reports', 'edit-shop_order', 'edit-shop_coupon', 'shop_coupon', 'shop_order', 'edit-product', 'product' ) ) ) ) {
|
||||
if ( in_array( $screen->id, apply_filters( 'woocommerce_screen_ids', array( 'toplevel_page_' . $wc_screen_id, $wc_screen_id . '_page_woocommerce_settings', $wc_screen_id . '_page_woocommerce_reports', 'toplevel_page_woocommerce', 'woocommerce_page_woocommerce_settings', 'woocommerce_page_woocommerce_reports', 'edit-shop_order', 'edit-shop_coupon', 'shop_coupon', 'shop_order', 'edit-product', 'product' ) ) ) ) {
|
||||
|
||||
wp_enqueue_script( 'woocommerce_admin' );
|
||||
wp_enqueue_script( 'farbtastic' );
|
||||
|
@ -496,7 +497,7 @@ function woocommerce_admin_scripts() {
|
|||
}
|
||||
|
||||
// Reports pages
|
||||
if ( $screen->id == apply_filters( 'woocommerce_reports_screen_id', 'woocommerce_page_woocommerce_reports' ) ) {
|
||||
if ( in_array( $screen->id, apply_filters( 'woocommerce_reports_screen_ids', array( $wc_screen_id . '_page_woocommerce_reports', apply_filters( 'woocommerce_reports_screen_id', 'woocommerce_page_woocommerce_reports' ) ) ) ) ) {
|
||||
|
||||
wp_enqueue_script( 'jquery-ui-datepicker' );
|
||||
wp_enqueue_script( 'flot', $woocommerce->plugin_url() . '/assets/js/admin/jquery.flot'.$suffix.'.js', 'jquery', '1.0' );
|
||||
|
|
|
@ -169,6 +169,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
|
|||
* Tweak - Notices during checkout for admin users if the checkout is mis-configured.
|
||||
* Fix - Disable autocomplete for checkout fields which refresh totals - no events get fired on autocomplete.
|
||||
* Fix - Clear rating transients when editing comments.
|
||||
* Fix - Screen ids when plugin name localised.
|
||||
* Localization - Netherlands, Hungarian, Taiwan, Italian, Spanish updates.
|
||||
* Other minor fixes and localisation updates.
|
||||
|
||||
|
|
Loading…
Reference in New Issue