Ecwid Ecommerce Shopping Cart - Version 2.7.4

Version Description

  • Improvements of 'title' and 'canonical' meta tags generation. The update prevents incorrect meta tags appearing in some WordPress themes in WordPress 4.1
Download this release

Release Info

Developer Ecwid
Plugin Icon 128x128 Ecwid Ecommerce Shopping Cart
Version 2.7.4
Comparing to
See all releases

Code changes from version 2.7.3 to 2.7.4

Files changed (2) hide show
  1. ecwid-shopping-cart.php +14 -8
  2. readme.txt +4 -1
ecwid-shopping-cart.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.ecwid.com?source=wporg
5
  Description: Ecwid is a free full-featured shopping cart. It can be easily integrated with any Wordpress blog and takes less than 5 minutes to set up.
6
  Text Domain: ecwid-shopping-cart
7
  Author: Ecwid Team
8
- Version: 2.7.3
9
  Author URI: http://www.ecwid.com?source=wporg
10
  */
11
 
@@ -63,8 +63,9 @@ if ( is_admin() ){
63
  add_action('template_redirect', 'ecwid_apply_theme');
64
  add_action('wp_enqueue_scripts', 'ecwid_add_frontend_styles');
65
  add_action('wp', 'ecwid_seo_ultimate_compatibility', 0);
66
- add_action('wp_title', 'ecwid_seo_compatibility_init', 0);
67
- add_filter('wp_title', 'ecwid_seo_title', 20);
 
68
  add_action('plugins_loaded', 'ecwid_minifier_compatibility', 0);
69
  add_action('wp_head', 'ecwid_meta_description', 0);
70
  add_action('wp_head', 'ecwid_ajax_crawling_fragment');
@@ -341,15 +342,20 @@ function ecwid_seo_compatibility_template_redirect()
341
  remove_action( 'template_redirect', array( $wpseo_front, 'force_rewrite_output_buffer' ), 99999 );
342
  }
343
 
 
 
 
 
 
 
 
 
344
  function ecwid_seo_compatibility_init($title)
345
  {
346
  if (!array_key_exists('_escaped_fragment_', $_GET) || !ecwid_page_has_productbrowser()) {
347
  return $title;
348
  }
349
 
350
- // Default wordpress canonical
351
- remove_action( 'wp_head','rel_canonical');
352
-
353
  // Yoast Wordpress SEO
354
  global $wpseo_front;
355
  // Canonical
@@ -669,10 +675,10 @@ function ecwid_content_started($content)
669
 
670
  function ecwid_wrap_shortcode_content($content, $name)
671
  {
672
- return "<!-- Ecwid shopping cart plugin v 2.7.3 -->"
673
  . ecwid_get_scriptjs_code()
674
  . "<div class=\"ecwid-shopping-cart-$name\">$content</div>"
675
- . "<!-- END Ecwid Shopping Cart v 2.7.3 -->";
676
  }
677
 
678
  function ecwid_get_scriptjs_code($force_lang = null) {
5
  Description: Ecwid is a free full-featured shopping cart. It can be easily integrated with any Wordpress blog and takes less than 5 minutes to set up.
6
  Text Domain: ecwid-shopping-cart
7
  Author: Ecwid Team
8
+ Version: 2.7.4
9
  Author URI: http://www.ecwid.com?source=wporg
10
  */
11
 
63
  add_action('template_redirect', 'ecwid_apply_theme');
64
  add_action('wp_enqueue_scripts', 'ecwid_add_frontend_styles');
65
  add_action('wp', 'ecwid_seo_ultimate_compatibility', 0);
66
+ add_action('wp', 'ecwid_remove_default_canonical');
67
+ add_filter('wp_title', 'ecwid_seo_compatibility_init', 0);
68
+ add_filter('the_title', 'ecwid_seo_title', 20);
69
  add_action('plugins_loaded', 'ecwid_minifier_compatibility', 0);
70
  add_action('wp_head', 'ecwid_meta_description', 0);
71
  add_action('wp_head', 'ecwid_ajax_crawling_fragment');
342
  remove_action( 'template_redirect', array( $wpseo_front, 'force_rewrite_output_buffer' ), 99999 );
343
  }
344
 
345
+ if (!is_admin) add_action('wp', 'ecwid_remove_default_canonical');
346
+ function ecwid_remove_default_canonical()
347
+ {
348
+ if (array_key_exists('_escaped_fragment_', $_GET) && ecwid_page_has_productbrowser()) {
349
+ remove_action( 'wp_head','rel_canonical');
350
+ }
351
+ }
352
+
353
  function ecwid_seo_compatibility_init($title)
354
  {
355
  if (!array_key_exists('_escaped_fragment_', $_GET) || !ecwid_page_has_productbrowser()) {
356
  return $title;
357
  }
358
 
 
 
 
359
  // Yoast Wordpress SEO
360
  global $wpseo_front;
361
  // Canonical
675
 
676
  function ecwid_wrap_shortcode_content($content, $name)
677
  {
678
+ return "<!-- Ecwid shopping cart plugin v 2.7.4 -->"
679
  . ecwid_get_scriptjs_code()
680
  . "<div class=\"ecwid-shopping-cart-$name\">$content</div>"
681
+ . "<!-- END Ecwid Shopping Cart v 2.7.4 -->";
682
  }
683
 
684
  function ecwid_get_scriptjs_code($force_lang = null) {
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: ecwid
3
  Tags: ecwid, shopping cart, ecommerce, wordpress ecommerce, wp e-commerce, paypal, e-commerce, online store, store, shop, cart, online shop, shopping, digital goods, downloadable products, product catalog, ecomerce, products, facebook, f-commerce
4
  Requires at least: 2.8
5
  Tested up to: 4.1
6
- Stable tag: 2.7.3
7
 
8
  Ecwid is a full-featured shopping cart that can be added to any Wordpress site in less than 5 minutes. Start using Ecwid for free today.
9
 
@@ -110,6 +110,9 @@ http://codex.wordpress.org/Managing_Plugins#Installing_Plugins
110
  * [Ecwid site](http://www.ecwid.com/?source=wporg-plugin-site "Ecwid Site")
111
 
112
  == Changelog ==
 
 
 
113
  = 2.7.3 =
114
  - Several bug fixes and minor improvements for the new "Add Store" button in WordPress Editor
115
 
3
  Tags: ecwid, shopping cart, ecommerce, wordpress ecommerce, wp e-commerce, paypal, e-commerce, online store, store, shop, cart, online shop, shopping, digital goods, downloadable products, product catalog, ecomerce, products, facebook, f-commerce
4
  Requires at least: 2.8
5
  Tested up to: 4.1
6
+ Stable tag: 2.7.4
7
 
8
  Ecwid is a full-featured shopping cart that can be added to any Wordpress site in less than 5 minutes. Start using Ecwid for free today.
9
 
110
  * [Ecwid site](http://www.ecwid.com/?source=wporg-plugin-site "Ecwid Site")
111
 
112
  == Changelog ==
113
+ = 2.7.4 =
114
+ - Improvements of 'title' and 'canonical' meta tags generation. The update prevents incorrect meta tags appearing in some WordPress themes in WordPress 4.1
115
+
116
  = 2.7.3 =
117
  - Several bug fixes and minor improvements for the new "Add Store" button in WordPress Editor
118