WithWine Wordpress Plugin Change Log
v1.3.7
- Changed WithWine_User_State to be set via a cookie instead of written directly into the page to avoid issues when the page is cached
v1.3.6
- Fixes some syntax errors for PHP 7.2
- Fixes a bug that excluded authorisation when needed for certain API calls
v1.3.5
- SECURITY RELEASE: Include Cross Site Request Forgery protection for all
WithWine API requests
- If you use page caching on any page, token verification will return errors when using WithWine components on those pages. You can use a header-exists check by unchecking "Verify Xsrf Token" in the settings page.
- The
origin
header is now also explicitly checked against Wordpress' list of allowed origins in case the server implementation allows requests. The allowed origin list can be modified using Wordpress'allowed_http_origins
filter hook.
- Support for returning a 404 status code or redirecting users if no data is
returned from the WithWine API, this can be achieved by adding the
set_not_found_status
attribute to the shortcode and optionally setting thenot_found_redirect
attribute to eithertrue
or a selected Page ID to redirect to. andset_not_found_status=true
- Added documentation for Club Sign Up Wizard
- Added some "getting started" notes
- Added an option to the settings page for the Gray 6 text colour
v1.3.4
- Widget Containers in settings (Cart, Login and Registration Links) can now accept multiple IDs
v1.3.3
- Fixed caching of refresh endpoint response
v1.3.2
- Allow use of
<title>
tag inside Withwine api shortcode withhead
attribute
v1.3.0
- Reverted to the original approach on how shortcodes are rendered
- Shortcodes with
_compat
are now deprecated - Fixed
set_page_title
v1.2.12-v1.2.14
- Fixes for refresh token on PHP versions pre 7.2
- Fixes for template fields. If a value is a string, use json_encode and trim the extra double quotes
v1.2.11
- Added refresh token handling for auto-refreshing the login and keeping sessions fresh
- Template fields will now always be encoded using json_encode, regardless of whether they are scalar or not
v1.2.10
- Added
withwine_compat
andwithwineapi_compat
compatibility modes to allow other plugins (such as Elementor) to render the widgets normally
v1.2.8
- Added new admin option
Tasting Menu Product List Page Template ID
to map the product list ID to the product-list widget varieties
v1.2.7
- Changed product ID support to work for any widget type that starts with "product-" but not "product-list" (This will enable support for "product variation"-related components and should future proof the need to upgrade the plugin for new product components)
- Added a "widget type" CSS class to widget containers so they can be targeted more easily with custom styles
- Added documentation for product variations
v1.2.6
- Fixed bug where POST requests with a large body were failing
- Fixed Wordpress' "doing it wrong" response header in requests
- Fixed typo in readme
v1.2.5
- fixed showif / hideif checking for truthiness, again
- added
{{$self}}
to access the current object
v1.2.4
- fixed showif / hideif checking for truthiness
v1.2.3
- Added Global Widget Version settings.
- Saving the settings will now nuke the cache for that Brand Id / Client Id.
- Shortcodes can add
version="[VERSION NUMBER]"
as widget's attribute to overwrite the global version setting.
v1.2.2
- Added additional
any
/all
conditional attributes withshowIf
/hideIf
, addedarrayhasatleast
.
v1.2.1
- Added admin option to disable try/like (tasting) bar
v1.2.0
- Added
templating syntax
which allows to access the API result and / or transform the shortcode's content. - Added
schema
attribute. - Added
head
attribute.
v1.1.6
- Added ability to format api values using a "PHP sprintf format string" in the renderformat attribute.
- Catch API errors when not in debug mode so the page still renders. You can use
define( 'WP_DEBUG_LOG', true );
to see errors in a log file ordefine( 'WP_DEBUG', true );
to see errors on the page (more info available from Wordpress Support).
v1.1.5
- Support for try/like bar
v1.1.4
- Added no-cache headers to paths used directly by the plugin to hint to CDNs not to cache them in case CDNs are unintentionally configuraed to include these endpoints
v1.1.2
- Added
product-price
type forwithwine
shortcode for displaying the price for the current user. - Added
conditional-content
type forwithwine
shortcode for displaying content or log in/out links based on the logged in status of the user
v1.1.1
- Added option to prevent deletion of settings when uninstalling the plugin. This will make it easier to upgrade.
v1.1.0
- Updated documentation for product list support. Changed
itemname=*
attribute on[withwine type='item']
tosourceitem=*
10 August 2020
- Support for rendering API data via the
withwineapi
shortcode - Added Register and Login links instead of just Login link
29 May 2020
- Option to set the page title from widgets
- Selecting star colour for product award ratings
- Support for un-trying and un-liking products
- Instead of using the attribute
data
with a JSON value, specify these options as multiple attributes prefixed withdata_
. **
**The README has been updated to reflect this. The new version of the plugin
is backwards compatible with the data
attribute. Previous versions of the
plugin can replace attributes that start with data_ by specifying them in JSON
format in a "data" attribute (as was done previously). For example:
data{ "product_id":"123", "pricing": { "display": "singlePrice", "decimals": "2" }, "carrot": { "text": "Club Members save 15%" } }