WooCommerce Menu Cart - Version 2.7.9

Version Description

  • Tested up to WooCommerce 4.1
  • Deprecated: Custom/Built-in AJAX option
Download this release

Release Info

Developer wpovernight
Plugin Icon 128x128 WooCommerce Menu Cart
Version 2.7.9
Comparing to
See all releases

Code changes from version 2.7.8.1 to 2.7.9

includes/wpmenucart-settings.php CHANGED
@@ -19,6 +19,7 @@ class WpMenuCart_Settings {
19
  if ( false == get_option( $option ) ) {
20
  add_option( $option );
21
  }
 
22
 
23
  // Section.
24
  add_settings_section(
@@ -242,7 +243,8 @@ class WpMenuCart_Settings {
242
  );
243
  }
244
 
245
- if ( class_exists( 'WooCommerce' ) || defined('JIGOSHOP_VERSION') || class_exists( 'Easy_Digital_Downloads' ) ) {
 
246
  add_settings_field(
247
  'builtin_ajax',
248
  __( 'Use custom AJAX', 'wp-menu-cart' ),
@@ -261,7 +263,6 @@ class WpMenuCart_Settings {
261
  register_setting( $option, $option, array( &$this, 'wpmenucart_options_validate' ) );
262
 
263
  // Register defaults if settings empty (might not work in case there's only checkboxes and they're all disabled)
264
- $option_values = get_option($option);
265
  if ( empty( $option_values ) )
266
  $this->default_settings();
267
 
19
  if ( false == get_option( $option ) ) {
20
  add_option( $option );
21
  }
22
+ $option_values = get_option($option);
23
 
24
  // Section.
25
  add_settings_section(
243
  );
244
  }
245
 
246
+ if ( ( class_exists( 'WooCommerce' ) && isset( $option_values['builtin_ajax'] ) ) || defined('JIGOSHOP_VERSION') || class_exists( 'Easy_Digital_Downloads' ) ) {
247
+
248
  add_settings_field(
249
  'builtin_ajax',
250
  __( 'Use custom AJAX', 'wp-menu-cart' ),
263
  register_setting( $option, $option, array( &$this, 'wpmenucart_options_validate' ) );
264
 
265
  // Register defaults if settings empty (might not work in case there's only checkboxes and they're all disabled)
 
266
  if ( empty( $option_values ) )
267
  $this->default_settings();
268
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: woocommerce, menu, bar, cart, basket, header, shopping cart, navigation, e
5
  Requires at least: 3.4
6
  Tested up to: 5.4
7
  Requires PHP: 5.3
8
- Stable tag: 2.7.8.1
9
 
10
  Automatically displays a shopping cart in your menu bar. Works with WooCommerce, WP-Ecommerce, EDD, Eshop and Jigoshop
11
 
@@ -85,6 +85,10 @@ Once the plugin is activated navigate to Settings > Menu Cart Setup. Select your
85
 
86
  == Changelog ==
87
 
 
 
 
 
88
  = 2.7.8.1 =
89
  * Fix: Plugin header
90
 
5
  Requires at least: 3.4
6
  Tested up to: 5.4
7
  Requires PHP: 5.3
8
+ Stable tag: 2.7.9
9
 
10
  Automatically displays a shopping cart in your menu bar. Works with WooCommerce, WP-Ecommerce, EDD, Eshop and Jigoshop
11
 
85
 
86
  == Changelog ==
87
 
88
+ = 2.7.9 =
89
+ * Tested up to WooCommerce 4.1
90
+ * Deprecated: Custom/Built-in AJAX option
91
+
92
  = 2.7.8.1 =
93
  * Fix: Plugin header
94
 
wp-menu-cart.php CHANGED
@@ -3,13 +3,13 @@
3
  * Plugin Name: WooCommerce Menu Cart
4
  * Plugin URI: www.wpovernight.com/plugins
5
  * Description: Extension for your e-commerce plugin (WooCommerce, WP-Ecommerce, Easy Digital Downloads, Eshop or Jigoshop) that places a cart icon with number of items and total cost in the menu bar. Activate the plugin, set your options and you're ready to go! Will automatically conform to your theme styles.
6
- * Version: 2.7.8.1
7
  * Author: Jeremiah Prummer, Ewout Fernhout
8
  * Author URI: www.wpovernight.com/
9
  * License: GPL2
10
  * Text Domain: wp-menu-cart
11
  * WC requires at least: 2.0.0
12
- * WC tested up to: 4.0.0
13
  */
14
 
15
  class WpMenuCart {
@@ -321,7 +321,7 @@ class WpMenuCart {
321
  'wpmenucart',
322
  plugins_url( '/javascript/wpmenucart.js' , __FILE__ ),
323
  array( 'jquery' ),
324
- '2.7.8.1',
325
  true
326
  );
327
 
@@ -351,7 +351,7 @@ class WpMenuCart {
351
  'wpmenucart-edd-ajax',
352
  plugins_url( '/javascript/wpmenucart-edd-ajax.js', __FILE__ ),
353
  array( 'jquery' ),
354
- '2.7.8.1'
355
  );
356
 
357
  wp_localize_script(
3
  * Plugin Name: WooCommerce Menu Cart
4
  * Plugin URI: www.wpovernight.com/plugins
5
  * Description: Extension for your e-commerce plugin (WooCommerce, WP-Ecommerce, Easy Digital Downloads, Eshop or Jigoshop) that places a cart icon with number of items and total cost in the menu bar. Activate the plugin, set your options and you're ready to go! Will automatically conform to your theme styles.
6
+ * Version: 2.7.9
7
  * Author: Jeremiah Prummer, Ewout Fernhout
8
  * Author URI: www.wpovernight.com/
9
  * License: GPL2
10
  * Text Domain: wp-menu-cart
11
  * WC requires at least: 2.0.0
12
+ * WC tested up to: 4.1.0
13
  */
14
 
15
  class WpMenuCart {
321
  'wpmenucart',
322
  plugins_url( '/javascript/wpmenucart.js' , __FILE__ ),
323
  array( 'jquery' ),
324
+ '2.7.9',
325
  true
326
  );
327
 
351
  'wpmenucart-edd-ajax',
352
  plugins_url( '/javascript/wpmenucart-edd-ajax.js', __FILE__ ),
353
  array( 'jquery' ),
354
+ '2.7.9'
355
  );
356
 
357
  wp_localize_script(