=== WP Rich Snippets ===
Contributors: hishaman
Donate link: https://wprichsnippets.com
Tags: markup, schema, schema types, rich snippets, google, structured data, seo, search, search engine, search engine optimization, item prop, reviews, user reviews, ratings, user rating, star rating, review website, post, posts, page, custom post type, shortcode, comments, plugin
Requires at least: 4.0
Tested up to: 4.8.2
Stable tag: 1.4.8
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Add Schema Structured Markup for Better WordPress SEO.

== Description ==

Enhance the relationship between search engines and your site by telling more. Help search engines -like Google- to understand your content better!

This plugin adds Google's Rich Snippets based on schema.org for a better WordPress SEO, it help you customize search results for more traffic and conversion.

= Extend with Add-ons =
Extend the plugin functionality with add-ons, view [Add-ons](https://wprichsnippets.com/addons/) on our website.

= Add semantic / structural markup =
Once your content is marked up, your web site will be more meaningful and accessible by search engines, your pages will be indexed and ranked more relevantly to its search queries.

= Enhanced search experience =
If your pages are marked correctly, search engines may show rich snippets -detailed information- in search results. These snippets intended to help searchers with specific queries.

= Attract more web traffic =
Rich snippets help web searchers recognize when your site is relevant to their search, and may result in more clicks to your pages.

== Changelog ==

= Version 1.4.8 =

Bug Fixes:

* None.

Enhancements:

* Added post meta class to be used to create new features via add-ons.

= Version 1.4.7 =

Bug Fixes:

* Fixed warning, only variables should be passed by reference in attachment image src.
* Fixed several PHP notices happened when a variable is not set.

Enhancements:

* Used a filter to display aggregate user reviews details before comment section.
* Updated plugin settings to explain using specific plugin license on activation.
* Updated the wprs_sl_updater file to version 1.6.14
* Disabled bulk actions in All Entries page within the plugin settings, not working.
* Tested the plugin against PHP 7.1.6 compatibility.
* Pumped test version to 4.8.2

= Version 1.4.6 =

Bug Fixes:

* Fixed an issue in automatic plugin updates.

Enhancements:

* Updated EDD licenses update class to version 1.6.10

= Version 1.4.5 =

Bug Fixes:

* Fixed a fatal error on plugin activation.

= Version 1.4.4 =

Bug Fixes:

* Fixed missing div in Box template.
* Fixed display of user star vote image.
* Fixed a bug caused an error in Google testing tool when set Restaurant review to none.

Enhancements:

* Updated FontAwesome to version 4.7.0
* Updated FontAwesome loading class.
* uUpdated License Key activation class to the latest 1.6.8
* Added a new filter to override FontAwesome file url.
* Added item_id to license updater request.
* Added a check to run the license updater only in admin pages.
* Added new filter wprs_text_editor_rating to override Editor Rating text.
* Added new filter wprs_text_readers_rating to override Readers Rating text.
* Added new filter wprs_text_your_rating to override Your Rating text.
* Added new filter wprs_meta_box to override custom post meta box fields.
* Added new filter aprs_link to override the button.
* Added new filter wprs_link_demo to override the demo button.
* Added new filter wprs_links to override the buttons.
* Added new filter wprs_links_mini to override the mini buttons.
* Added new feature to Review Widget to exclude current review entry.
* Enhanced license key activation process and added admin notifications.


= Version 1.4.3 =

Bug Fixes:

* Fixed the Only variables should be passed by reference error when getting image by id.
* Fixed an issue with Reviews Widget, it was breaking layout in some themes.
* Fixed a notice caused when image resizer class is not provided with image url.

Enhancements:

* Updated plugin updater class to 1.6.5

= Version 1.4.2 =

Bug Fixes:

* Fixed Widget filter name.
* Fixed Widget excerpts, a better way is to get row content and trim it.
* Fixed several notices after updating to WordPress 4.6 release.
* Fixed user range slider handle style.
* Fixed wprs_get_image_id function, attachment id did not work with cropped images.
* Fixed rating stars letter spacing style.
* Fixed minimum required version 4.0 of WordPress.

Enhancements:

* Added new post meta field for Product Brand name.  
* Added new feature for HTML code embed in post meta, under Display tab.
* Added new filter to override Media output when HTML code is provided.
* Added Brazilian Real currency.
* Added admin notice if WooCommerce is active and Woo add-on is not installed.
* Added new settings for Publisher in plugin general settings.
* Added check to override Publisher markup if set in Schema post meta.
* Added use wp_enqueue_script to load jquery-touch-punch from WordPress library.
* Removed extra user styles file that was not needed, and move styles for main file.
* Removed unused images, this has been replaces with FontAwesome.
* Modified style for rating stars.
* Modified entry image to use wprs-image size, it was set to medium.
* Updated plugin updater class to 1.6.3 update.
* Tested with WordPress 4.6.1 release and pumped up version in ready.txt file.

= Version 1.4.1 =

Bug Fixes:

* Fixed styles for All Entries admin page, rating stars was not showing properly.
* Fixed a PHP Fatal error when saving post after adding a video url in media. 
* Fixed Schema Types drop box is not showing in Schema post meta box.
* Fixed Box was not showing when WooCommerce plugin is activated.
* Fixed modified date was not displaying on some Themes, removed updated class.

Enhancements:

* Added extra classes for styling editor and user reviews.
* Added new post meta field for more specific Schema for LocalBusiness.
* Added more specific Schema for LocalBusiness to All Entries list if defined.
* Pumped up tested WordPress version.

= Version 1.4 =

Bug Fixes:

* Fixed errors on WooCommerce product pages.
* Fixed video thumb is not been used as widget thumb.

Enhancements:

* Enhanced video thumb, now loaded as attachment and save url in post meta.
* Enhanced widget, added support for review types.
* Enhanced widget, added support for video thumbnail.
* Enhanced widget, added new fields for thumbnail width, height, and alignment.
* Enhanced widget, added new fields for excerpt length and a read more link.
* enhanced widget, added two styles for reviews display. 
* Enhanced widget styles to avoid conflicts with themes and other plugins.
* Enhanced styles for rating to avoid conflict with themes and other plugins.
* Added new class to resize images when calling it on the widget.

= Version 1.3.9.1 =

Bug Fixes:

* Fixed an error caused on plugin activation for a duplicate function naming.
* Fixed a long display of Table of Contents Plus plugin output.

Enhancements:

* None in this release.

= Version 1.3.9 =

Bug Fixes:

* Fixed an error in markup when rating equal 0, no more markup output if this happen. 
* Fixed an error caused when class WP_oEmbed when it is not defined.
* Fixed incorrect post meta keys in VideoObject.
* Fixed missing itemprop=video in VideoObject.
* Fixed admin notice when $embed variable is not defined.
* Fixed front-end notice on 404 pages.
* Fixed 505 error when loading FontAwesome styles file in post edit page.
* Fixed position of select field in Schema post meta box.
* Modified Box templates, replaced h4 tags with b.
* Modified sub admin news page to parse post from wprichsnippets.com blog feed.
* Pumped tested up to WordPress 4.5.3 release.

Enhancements:

* Modified entries list all page, changed Post to read Post Type.
* Enhanced some variable names in the core functions to make it more readable.

= Version 1.3.8 =

Bug Fixes:

* None in this release.

Enhancements:

* Added support for Schema VideoObject when used an Embedded video url.
* Enhanced the media output function, now it supports several oEmbed providers.
* Added new post meta fields for Embed.
* Removed the Youtube post meta field, used Embed instead.

= Version 1.3.7 =

Bug Fixes:

* Fixed a notices was showing on archives.
* Fixed an error happened when adding aggregate review and criteria field not set.

Enhancements:

* Added new Schema type Recipe.
* Added new template for votes and aggregate user reviews to work with Recipe.
* Added new fields to the Rich Snippets meta box for Recipe.
* Added new styles for the Recipe Box tempalte.
* Added several new functions and variables to the wprs_template array. 
* Added new function to display user aggregate rating with minimal layout.
* Cleaned some part of the code to make it more readable.

= Version 1.3.6 =

Bug Fixes:

* Fixed a notice when deciding by zero in user aggregate pagination.
* Fixed FontAwesome up arrows in post Schema meta box was not showing.
* Fixed a schema error in user aggregate reviews by removing applicationCategory when when schema type is not SoftwareApplication.
* Fixed warning on aggregate user reviews.

Enhancements:

* Respect WooCommerce schema if plugin is active and enabled on an entry.
* Added required notice to a couple of required fields in schema type Article.
* Added itemprop to images in user aggregate reviews list.
* Modified some of the styles to clear unwanted empty spaces.
* Use Schema template array values for SoftwareApplication.
* Recoded a few functions to enhance plugin performance in admin pages.
* Pumped tested up to 4.5.2 version of WordPress.

= Version 1.3.5 =

Bug Fixes:

* Fixed wprs_media_to_mageObject function to process on all schema types.
* Fixed errors in schema for Article by adding missing meta.
* Fixed description been displayed when has no value, lead to unwanted HTML tags.
* Fixed button links been displayed when it has no value, lead to unwanted HTML tags.
* Fixed missing HTML divs in Article template, lead to break page layout.
* Fixed deprecated function, use wp_get_current_user.

Enhancements:

* Added aggregate reviews pagination numbers with links.

= Version 1.3.4 =

Bug Fixes:

* Fixed loading Raty FA script only when required by the plugin.
* Fixed a bug in the aggregate update user rating array function.
* Fixed Add Your Review icon link title was not matching button text.
* Fixed an error when opening the admin News section.
* Fixed styles for wprs_square div id.

Enhancements:

* Added new settings option to display item description below the Box.
* Added new function description_raw_wpautop and added it to the template array.
* Added new settings option to reset votes IPs stored in post meta off entries.
* Added new settings option to reset all user votes data.
* Added new function wprs_user_vote_array_update to calculate and save votes data.
* Added new function wprs_get_user_vote_array_display to display votes array.
* Added new callout message after a user submit a review.
* Added CSS for Bootstrap documentation page callout styles.
* Added a check to remove the Add Your Review button and icon when comment submitted.
* Added new parameter passed to url which redirect user after comment submission.

= Version 1.3.3 =

Bug Fixes:

* Fixed missing variable in aggregate reviews popup form.
* Fixed a bug happen when rating is set to required.
* Fixed a bug in Box filter, call to action buttons was not showing.
* Fixed plugin release date was 2015, replaced that with 2016.

Enhancements:

* Added redirect to entry reviews section after a user submit review.
* Added comment url field to popup and hooked it to the plugin settings.
* Added new function wprs_get_user_star_rating_mini outputs votes count with schema.
* Added new item user_star_rating_mini to the template array. 
* Updated jQuery ColorBox to version 1.6.3
* Switched user reviews form rating to jQuery Raty FA.
* Removed unused function wprs_screen_icon from the plugin settings page.
* Removed votes rating target hint to minimize and clean the output.
* Modified some text in the plugin settings page.

= Version 1.3.2 =

Bug Fixes:

* Fixed a bug in Publisher logo image.

Enhancements:

* Added Organization publisher fields to post meta.

= Version 1.3.1 =

Bug Fixes:

* Fixed a bug in the user aggregate reviews, values were not saving.
* Fixed markup error in Google testing tool for Article, votes.

Enhancements:

* Added more compatibility with WordPress 4.4 release.
* Added compatibility with WordPress 4.4 responsive images.
* Added new item to Box template array, author_raw.
* Added new function wprs_get_img_url to retrieve image url.
* Added new function wprs_get_publisher_markup.
* Added new filter to override Media when schema types are set to Article votes.

= Version 1.3 =

Bug Fixes:

* Fixed a bug in the user rating stars vote.

Enhancements:

* Added new function wprs_get_meta_by_id.
* Added new function wprs_box.
* Added new function wprs_get_shortcode_attributes.
* Added post ID parameter to the template function.
* Added post ID to user count class.
* Added support for post id in Raty to have multiple instant on same page.
* Added new functions to insert Raty script in a separate file.
* Updated all template functions within the plugin to add post ID.
* Switched to jQuery Raty FA, star rating plugin with FontAwesome.
* Pumped tested version WordPress 4.4.2 version.

= Version 1.2.9 =

Bug Fixes:

* Fixed a PHP notice recorded in the error log file.
* Fixed published and modified dates on entries by adding post ID to the function.

Enhancements:

* Added Nigerian Naira currency.
* Added Author Name post meta value to reviews column if exists.
* Corrected German translation.

= Version 1.2.8 =

Bug Fixes:

* Fixed rating stars styles in IE11 was not correct.

Enhancements:

* Disabled activation and deactivation hooks.
* Added a check for site url to remove update notification on wprichsnippets.com site.
* Added four new filters for post published and modified dates.
* Cleaned some code.

= Version 1.2.7 =

Bug Fixes:

* Not any in this release.

Enhancements:

* Added new item to Box template, user_star_rating_raw for user reviews with no markup.

= Version 1.2.6 =

Bug Fixes:

* Fixed itemprop datePublished value in Box template.

Enhancements:

* Check for license key before making request.
* Added new function wprs_get_user_star_rating_raw for user rating reviews with no markup.
* Added new item to Box template, user_star_rating_raw for user reviews with no markup.
* Removed the changelog.txt file.

= Version 1.2.5 =

Bug Fixes:

* Fixed Disqus commenting system integration issue.

Enhancements:

* None in this version.

= Version 1.2.4 =

Bug Fixes:

* Fixed jQuery bug in the Schema post meta, for review types radio buttons.

Enhancements:

* Added new option to display Box below content in Snippets post meta, under Display tab.
* Added new option to override Free price text in Schema post meta, under Price tab.
* Added new filter wprs_price_free to override Free price text. 

= Version 1.2.3 =

Bug Fixes:

* No bug fixes in this release.

Enhancements:

* Enhanced inserting item description, now it is added via meta tag.
* Hardened assets folder by preventing direct access to all sub folders.
* Added alternativeHeadline meta to Article schema type.
* Added letter-spacing to .rating class style.
* Added new style for CTA add-on Rating headline.
* Added margin below Pros and Cons headline.
* Changed the star icon in admin bar to Google developers icon. 
* Modified post meta text from No Rich Snippets to No Schema.

= Version 1.2.2 =

Bug Fixes:

* Fixed user aggregate reviews schema markup.
* Fixed a bug in post meta, disclaimer check box was not saving correctly.
* Fixed missing meta, softwareHelp was missing in some cases.
* Removed .container class from Bootstrap.
* Renamed .left and .right classes to avoid conflict with themes.

Enhancements:

* Enhanced the Use Reviews Update function in the plugin settings.
* Enhanced placement of entry description and link buttons.
* Added auto paragraphs to entry description.
* Added new item to the wprs_template() function, for total comments count.
* Added meta content for interactionCount, which includes comments counts.
* Added new item to the wprs_template() function, for SoftwareApplication screenshot.
* Added new filters to hook into the Box, content and entries.
* Removed older filters that is not used by the plugin.
* Modified post meta headline from Rich Snippets to Schema.
* Modified some text in plugin settings page.

= Version 1.2.1 =

Bug Fixes:

* Fixed SoftwareApplication markup and post meta.

Enhancements:

* Enhanced filters above and below Box and content.
* Added a new filter to hook to the Box.
* Hook entry description to the wprs_box_after filter via its own function.
* Hook entry links to the wprs_box_after filter via its own function.
* Added new class wprs_box_links to button links, and gave it a style.
* Added support for schema type Article.
* Added a new radio check button for settings Review Type to none.
* Added two new variables to wprs_template() function, datePublished and dateModified.
* Updated description and links in Box template files for all reviews types.

= Version 1.2 =

Bug Fixes:

* Fixed a couple of notices.

Enhancements:

* Added Bootstrap form styles.
* Added Bootstrap table styles.
* Added a new function wprs_getReviewLink($id) to get single link button.
* Added a new function wprs_getReviewLinkDemo($id) to get single demo link button.
* Added link to template array to store link button.
* Added link_demo to template array to store demo link button.
* Added German translation, thanks to Andreas Paul.

= Version 1.1 =

Bug Fixes:

* Fixed an error in Google Structure Data Tool on aggregate user reviews.
* Fixed organization template filter names.
* Fixed style for the .row lass.
* Fixed slow admin pages, plugin was checking for updates on each page load.

Enhancements:

* Upgraded to Bootstrap v3.3.4 and reduced file size, for better compatibility.
* Tweaked styles for WPRS Compare add-on.
* Modified the front end styles file header comment.
* Added style fix for user_range class.

= Version 1.0 =

Bug Fixes:

* Fixed range input label style.
* Fixed .row override in some themes.
* Fixed Documentation and Support admin menu links to open in a new window.
* Fixed check minimum required version of WordPress.

Enhancements:

* Modified the WPRichSnippets plugin description.
* Prefixed the get_IP function to wprs_get_ip to avoid conflicts.
* Updated FontAwesome to the latest version 4.3.0
* Updated Raty stars to match cold changes.
* Added new class item_range_label to fix label display with some themes.
* Added new Schema type SoftwareApplication.
* Added CSS classes and styles for the new Software Specs add-on.
* Added CSS for the User Reviews Image add-on.
* Added new license key activation method for automatic plugins updates.
* Added new filter wprs_user_review_content_before.
* Added new filter wprs_user_review_content_after.
* Added new function wprs_get_option to check for an option.
* Added new functionality for tracking the plugin usage.
* Pumped minimum required version of WordPress to 3.9
* Cleaned some code in the admin side files.

== Upgrade Notice ==

= version 1.4.7 =
This update includes several bug fixes. Please, update the plugin on your site now.

= version 1.4.6 =
This update includes an important fix for automatic plugin updates. Please, update the plugin on your site now.

= version 1.4.5 =
This update includes an important fix for a fatal error on plugin activation. Please, update the plugin on your site now.

= version 1.4.4 =
This update includes several bug fixes and enhancements, important update for License Key activation. Please, update the plugin on your site now.

= version 1.4.3 =
This update includes fixes and enhancements, important update for Reviews Widget. Please, update the plugin on your site now.

= version 1.4.2 =
This update includes big enhancements and several bug fixes. It is highly recommended that you get this update on your site now.

= version 1.4.1 =
Several fixes and enhancements has been included in this release, plus a new cool feature for extending LocalBusiness Schema markups. It is highly recommended that you get this update on your site now.

= version 1.4 =
Get the new Rich Snippets widget features, in this release we put many enhancements to the Entries Widget to allow you display your reviews in a better way. Update the plugin on your site now.

= version 1.3.9.1 =
This a big fix release for a display conflict in Table of Contents Plus plugin, please update the plugin on your site to avoid any possible conflicts.

= version 1.3.9 =
In this update, we have added several bug fixes and a couple of enhancements to the plugin.

= version 1.3.8 =
In this update, we have added big enhancements to the Media display.

= version 1.3.7 =
In this update, we have added Schema for Recipes and other new features and fixes. Make sure to get this update for your site.

= version 1.3.6 =
In this update, we have done a few bug fixes in the schema for user aggregate reviews.

= version 1.3.5 =
In this update, we have done a few bug fixes in the schema for Article and responsive images.

= version 1.3.4 =
In this update, we have added a set of new functions and enhanced other functions performance, plus a few bug fixes.

= version 1.3.3 =
In this update, we have added compatibility with WordPress 4.5 release, bug fixes and other code enhancements.

= version 1.3.2 =
In this update, we have fixed a bug in publisher logo and enhanced schema markup by adding new fields to post meta.

= version 1.3.1 =
In this update, we have added compatibility with WordPress 4.4 release, which fixes a few issues in the user aggregate reviews and enhance responsive images.

= version 1.3 =
In this update, we have added new functions and several enhancements. Upgrade to this version to get the enhancements and new features now.

= version 1.2.9 =
In this update, we have added the Nigerian Naira currency. Upgrade to this version to get the enhancements and new features now.

= version 1.2.8 =
In this update, you will get a fix for star rating display in IE browser plus new filters. Upgrade to this version to get the enhancements now.

= version 1.2.7 =
Upgrade to this release is highly recommended, some add-ons will need this update to work properly. Upgrade to this version to get the enhancements now.

= version 1.2.6 =
There is a few enhancements that has been added in this release. Upgrade to this version to get the enhancements now.

= version 1.2.5 =
There is a fix for Disqus commenting system integration in this release. Upgrade to this version to get the fix.

= Version 1.2.4 =
In this update, a few enhancements has been added, plus a bug fix for the Schema post meta, please upgrade to this version to get this fix.

= Version 1.2.3 =
In this update, the plugin get several little enhancements and tweaks, including hardening the assets folder to increase security.

= Version 1.2.2 =
This update include enhancements to the User Update Function, this will make it super fast! It is highly recommended that you upgrade to this version to get all the new enhancements.

= Version 1.2.1 =
This update include several new features and enhancements, introducing a new schema type Article, introducing a new features for non reviews entries, new functions, filters and enhancements to the Box template. It is highly recommended that you upgrade to this version to get all the new enhancements.

= Version 1.2 =
This update solve broken Submit Form add-on layout, and other issues. Please update the plugin to get all the new enhancements.

= Version 1.1 =
This update solve slow admin pages issue, and more. Please update the plugin to get all the new enhancements.

= Version 1.0 =
Moving on!
