Version Description
- 20.12.2017 =
- Fix - Undefined index error for specific stock settings.
Download this release
Release Info
| Developer | jameskoster |
| Plugin | |
| Version | 1.1.8 |
| Comparing to | |
| See all releases | |
Code changes from version 1.1.7 to 1.1.8
- readme.txt +5 -2
- storefront-sticky-add-to-cart.php +3 -3
readme.txt
CHANGED
|
@@ -2,8 +2,8 @@
|
|
| 2 |
Contributors: jameskoster, woothemes
|
| 3 |
Tags: woocommerce, ecommerce, storefront, sticky
|
| 4 |
Requires at least: 4.0
|
| 5 |
-
Tested up to: 4.
|
| 6 |
-
Stable tag: 1.1.
|
| 7 |
License: GPLv2 or later
|
| 8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 9 |
|
|
@@ -39,6 +39,9 @@ It simply takes up too much valuable screen real estate. You can display it on m
|
|
| 39 |
|
| 40 |
== Changelog ==
|
| 41 |
|
|
|
|
|
|
|
|
|
|
| 42 |
= 1.1.7 - 27.10.2017 =
|
| 43 |
* Tweak - Use wp_kses_post() for stock availability sanitization. Ensures compatibility with WooCommerce Waitlist extension.
|
| 44 |
* Tweak - Check for `form.cart` before calling Waypoint.
|
| 2 |
Contributors: jameskoster, woothemes
|
| 3 |
Tags: woocommerce, ecommerce, storefront, sticky
|
| 4 |
Requires at least: 4.0
|
| 5 |
+
Tested up to: 4.9.1
|
| 6 |
+
Stable tag: 1.1.8
|
| 7 |
License: GPLv2 or later
|
| 8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 9 |
|
| 39 |
|
| 40 |
== Changelog ==
|
| 41 |
|
| 42 |
+
= 1.1.8 - 20.12.2017 =
|
| 43 |
+
* Fix - Undefined index error for specific stock settings.
|
| 44 |
+
|
| 45 |
= 1.1.7 - 27.10.2017 =
|
| 46 |
* Tweak - Use wp_kses_post() for stock availability sanitization. Ensures compatibility with WooCommerce Waitlist extension.
|
| 47 |
* Tweak - Check for `form.cart` before calling Waypoint.
|
storefront-sticky-add-to-cart.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
* Plugin Name: Storefront Sticky Add to Cart
|
| 4 |
* Plugin URI: https://wordpress.org/plugins/storefront-sticky-add-to-cart/
|
| 5 |
* Description: Adds a sticky add-to-cart bar in single product pages that is revealed as the user scrolls down the page.
|
| 6 |
-
* Version: 1.1.
|
| 7 |
* Author: WooThemes
|
| 8 |
* Author URI: http://woothemes.com/
|
| 9 |
* Requires at least: 4.0.0
|
|
@@ -90,7 +90,7 @@ final class Storefront_Sticky_Add_to_Cart {
|
|
| 90 |
$this->token = 'storefront-sticky-add-to-cart';
|
| 91 |
$this->plugin_url = plugin_dir_url( __FILE__ );
|
| 92 |
$this->plugin_path = plugin_dir_path( __FILE__ );
|
| 93 |
-
$this->version = '1.1.
|
| 94 |
|
| 95 |
register_activation_hook( __FILE__, array( $this, 'install' ) );
|
| 96 |
|
|
@@ -297,7 +297,7 @@ final class Storefront_Sticky_Add_to_Cart {
|
|
| 297 |
echo '<div class="ssatc-content">';
|
| 298 |
echo esc_attr__( 'You\'re viewing:', 'storefront-sticky-add-to-cart' ) . ' <strong>' . get_the_title() . '</strong><br />';
|
| 299 |
echo '<span class="price">' . wp_kses_post( $product->get_price_html() ) . '</span> ' . wp_kses_post( $rating_html );
|
| 300 |
-
echo wp_kses_post( apply_filters( 'woocommerce_stock_html', $availability_html, $availability['availability'], $product ) );
|
| 301 |
|
| 302 |
ob_start();
|
| 303 |
|
| 3 |
* Plugin Name: Storefront Sticky Add to Cart
|
| 4 |
* Plugin URI: https://wordpress.org/plugins/storefront-sticky-add-to-cart/
|
| 5 |
* Description: Adds a sticky add-to-cart bar in single product pages that is revealed as the user scrolls down the page.
|
| 6 |
+
* Version: 1.1.8
|
| 7 |
* Author: WooThemes
|
| 8 |
* Author URI: http://woothemes.com/
|
| 9 |
* Requires at least: 4.0.0
|
| 90 |
$this->token = 'storefront-sticky-add-to-cart';
|
| 91 |
$this->plugin_url = plugin_dir_url( __FILE__ );
|
| 92 |
$this->plugin_path = plugin_dir_path( __FILE__ );
|
| 93 |
+
$this->version = '1.1.8';
|
| 94 |
|
| 95 |
register_activation_hook( __FILE__, array( $this, 'install' ) );
|
| 96 |
|
| 297 |
echo '<div class="ssatc-content">';
|
| 298 |
echo esc_attr__( 'You\'re viewing:', 'storefront-sticky-add-to-cart' ) . ' <strong>' . get_the_title() . '</strong><br />';
|
| 299 |
echo '<span class="price">' . wp_kses_post( $product->get_price_html() ) . '</span> ' . wp_kses_post( $rating_html );
|
| 300 |
+
echo wp_kses_post( apply_filters( 'woocommerce_stock_html', $availability_html, array_key_exists( 'availability', $availability ) ? $availability['availability'] : '', $product ) );
|
| 301 |
|
| 302 |
ob_start();
|
| 303 |
|
