=== Tasty Recipes ===
Contributors: wptasty, danielbachhuber
Tags: food blogging, recipes
Requires at least: 4.4
Tested up to: 5.3
Stable tag: 2.5.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Tasty Recipes is the easiest way to publish recipes on your WordPress blog.

== Description ==

Tasty Recipes makes it possible for anyone to publish their favorite recipes to the world. Your recipes will automatically be optimized for search engines and match your theme's design.

= Optimized for humans and machines =

In the WordPress editor, embed a recipe into your post, page or custom post type by using the "Add Recipe" button. When the recipe is inserted into the content, you'll see a preview of the rendered recipe so you know exactly what it's going to look like when published.

On the frontend of your website, your published recipe uses standard markup to fit in naturally with the design of your theme. Readers can click the "Print" button to open a version of the recipe formatted specifically for print.

= Schema.org microdata and JSON+LD =

Tasty Recipes automatically includes Schema.org microdata and JSON+LD to make it easy for Google and other search engines to read your recipes. When entering in your recipe's ingredients or instructions, make sure to create an ordered or unordered list. The list will signal to Tasty Recipes that these items should be marked up with Schema.org microdata and JSON+LD.

= Pain-free switching from EasyRecipe =

EasyRecipe user? Tasty Recipes can fully convert your existing EasyRecipe recipes into the Tasty Recipes format. First, perform a couple of test conversions on existing posts. If your posts support revisions, Tasty Recipes creates new revisions so you can safely roll back to the EasyRecipe markup. Once you've verified your recipes convert as expected, use the batch conversion tool in "Settings" -> "Tasty Recipes" to migrate any remaining existing EasyRecipe recipes.

== Installation ==

The Tasty Recipes plugin can be installed much like any other WordPress plugin.

1. Upload the plugin ZIP archive file via "Plugins" -> "Add New" in the WordPress admin, or extract the files and upload them via FTP.
2. Activate the Tasty Recipes plugin through the "Plugins" list in the WordPress admin.

With Tasty Recipes, there aren't any confusing settings to configure or customizations you need to worry about. You can now share your favorite recipes with the world!

== Changelog ==

= 2.5.2 (January 27, 2020) =
* Fixes print page compatibility issue with Beaver Builder.

= 2.5.1 (January 21, 2020) =
* Fixes print page compatibility issue with Genesis.

= 2.5.0 (November 4, 2019) =
* Enriches YouTube video schema with with description, duration, and upload date.
* Includes seconds in video schema durations.
* Improves Nutrifox embedding methodology to make the nutrition card load faster.
* Adds rel="canonical" to the print template.
* Fixes an issue where recipe scaling didn't work on sites that minified their frontend code.

= 2.4.0 (October 1, 2019) =
* Correctly displays Nutrifox labels in the block editor.
* Removes 'nofollow' from print template robots tag.
* Only adds trailing slash to print permalink when enabled for site to avoid unexpected redirect.
* Fixes scaling for an ingredient with a number immediately next to a vulgar fraction.
* Fixes incorrect counting for unordered lists within ordered lists in the Fresh and Bold templates.

= 2.3.1 (July 30, 2019) =
* Fixes "Jump To" button priority so it appears below all other added items.
* Properly supports the 'Additional CSS class' feature in the block editor.
* Fixes parsing the description from the AdThrive shortcode.
* Fixes duplicate `<hr>` displayed in Fresh card.

= 2.3.0 (May 8, 2019) =
* Integrates JSON+LD with Yoast SEO when Yoast is active.
* Adds a few integration points for Tasty Links equipment support.
* Ignores empty WPRM blocks when identifying posts to convert.
* Updates Cookbook converter to also convert shortcode instances.
* Fixes JavaScript error experienced post-conversion.

= 2.2.0 (April 10, 2019) =
* Introduces 'Default Author Link' with a per-recipe override.
* Makes a few improvements to the ingredient scaling algorithm.
* Refactors instruction schema generation to use 'HowToSection' and 'HowToStep' types.

= 2.1.0 (March 11, 2019) =
* Introduces ingredient scaling to recipes; can be disabled with `tasty_recipes_scalable` filter.
* Allow recipes to be converted individually within the block editor.
* Removes the inline metadata for nutrition markup in the Bold card.
* Updates WP Recipe Maker converter to support WPRM blocks.
* Updates Zip Recipe converter to support ZR blocks.
* Casts JSON+LD rating as strings to avoid PHP 7.1 `json_encode()` bug.
* Appends PHP and plugin version to EDD update requests.

= 2.0.0 (January 15, 2019) =
* Updates Block Editor (Gutenberg) integration for Tasty Links compatibility.
* Ignores nutrition fields in WPRM converter when no calories are present.
* Correctly parses ingredients and instructions with multiple `<li>` on the same line.
* Fixes PHP notice when 'external_plugins' isn't yet set in TinyMCE configuration.

= 1.9.1 (December 11, 2018) =
* Fixes issue where Tasty Recipe couldn't be edited in Gutenberg after the page had reloaded.

= 1.9.0 (December 3, 2018) =
* Script dependency updates for Gutenberg 4.5.0 compatibility.
* Auto-fills default recipe title in Gutenberg.
* Adds option to disable the Google JSON LD markup for a non-food recipe in Gutenberg.
* Introduces `tasty_recipes_limit_schema_reviews` filter for limiting the number of reviews in Google JSON LD markup.
* In Google JSON LD markup, if no author is set for the recipe, the post author is used instead.
* Adds 'fitvidsignore' to responsive video iframes by default.
* Fixes floats in Modern Compact stylesheet.

= 1.8.1 (October 11, 2018) =
* Limits 'Jump to Recipe' and 'Print Recipe' to only display on single post views; introduces `tasty_recipes_should_prepend_jump_to` filter for more granular control.

= 1.8.0 (October 8, 2018) =
* Adds Tasty Recipes affiliate functionality which automatically adds UI below the recipe card.
* Introduces 'Jump to Recipe' and 'Print Recipe' buttons which can be enabled from backend.
* Processes comment and non-comment ratings from Zip Recipes Pro.
* Removes license nag from Post editor because of layout conflicts.
* Fixes fatal error when using Tasty Recipes Gutenberg block.

= 1.7.0 (September 5, 2018) =
* Includes reviews in Google JSON LD markup.
* Includes post publish date as `datePublished` in Google JSON LD markup.
* Switches from type 'Thing' to type 'Person' in Google JSON LD markup author attribute.
* Supports a `disable-json-ld` shortcode flag for disabling JSON LD (e.g. non-food recipe posts).
* Displays Cookbook, Simple Recipe Pro, and WP Recipe Maker comment ratings when they exist.
* Also matches single quotes when processing `<iframe>` embeds for videos.

= 1.6.1 (August 1, 2018) =
* Fixes issue where recipe print template wouldn't load (strict variable comparison for the loss).

= 1.6.0 (July 31, 2018) =
* Adds a Tasty Recipes block for Gutenberg compatibility.
* Introduces `tasty_recipes_enable_responsive_iframes` filter for permitting responsive iframes to be disabled.

= 1.5.0 (July 12, 2018) =
* Generates JSON+LD metadata for AdThrive, Mediavine, Vimeo, and YouTube videos within post content.
* Only applies ratings hover behavior on desktop, to ensure compatibility with mobile.
* Fixes issue with Cookbook converter where nutrition could be set to `0` values.

= 1.4.1 (June 19, 2018) =
* Ensures AdThrive video embeds report a `embedUrl` to JSON+LD markup.

= 1.4.0 (June 14, 2018) =
* Adds support for embedding a video into the recipe card, and incuding the video's metadata in JSON+LD structured data.
* Displays keywords in all recipe card templates, for SEO best practices.
* Updates Simple Recipe Pro converter to handle ingredients stored as objects.
* Rearranges details fields to improve the UI.

= 1.3.0 (May 9, 2018) =
* Includes full capatibility with Tasty Links.
* Adds a "Keywords" field and includes the data in Google Schema output.
* Introduces `tasty_recipes_convert_easyrecipe_image_id` filter for modifying the image ID when converting Easy Recipe recipes.

= 1.2.1 (Mar. 28, 2018) =
* Fixes PHP fatal error caused by `get_current_screen()` not being defined in certain contexts.

= 1.2.0 (Mar. 21, 2018) =
* Adds recipe converter for WordPress.com.
* Updates ZipList converter to also handle Zip Recipes.
* Persists Simple Recipe Pro ratings data when it exists, and includes in recipe rating calculation.
* Introduces `tasty_recipes_google_schema` filter for modifying Google Schema output.
* Always includes the full size image in Google Schema output.
* Allows translation for all templates.
* Includes `data-pin-nopin` attribute to thumbnail and Instagram logo on all templates.
* Fixes issue where Tasty Recipes had a conflict with the WordPress Text Widget.
* Fixes PHP notice that occasionally happened when posting a comment.

= 1.1.0 (Feb. 26, 2018) =
* Adds recipe conversion tool for Simple Recipe Pro.
* Generates custom 1x1, 4x3, and 16x9 image sizes for use in JSON+LD markup.
* Includes several bundled recipe card designs that can be selected from the backend.
* Improves WP Recipe Maker converter to persist rating data and ignore nutrition data it can't handle.
* Fixes issue where print button didn't correctly pull up the print dialog.

= 1.0.0 (Jan. 8, 2018) =
* Greatly improves UI for batch recipe converters.
* Adds recipe converters for Cookbook and Yummly.
* Handles images in instruction and ingredient fields when migrating Meal Planner Pro, Yumprint, and ZipList recipes.
* Introduces `tasty_recipes_pre_import_image` for modifying image importing behavior.
* Ensures images with captions are correctly rendered.
* Removes all microdata markup from templates, as it was found to be causing SEO issues with https sites.

= 0.9.0 (Nov. 14, 2017) =
* Improves Yumprint converter to only include nutrition data when enabled for theme and a recipe has servings.
* Uses `https` for Schema.org URLs.
* Fixes issues where revisions of EasyRecipe posts would be counted in total posts to convert.
* Adds a call to `load_plugin_textdomain` to load actual localization files, enabling language-specific translations to work as expected.
* Attempt to find parent image in conversation process when a thumbnail was used in the template.

= 0.8.0 (Sept. 26, 2017) =
* Adds recipe conversion tool for WP Recipe Maker.
* Introduces `tasty_recipes_enable_ratings` filter for enabling/disabling ratings.
* Introduces `tasty_recipes_recipe_template_vars` filter for modifying template variables before rendering.
* Permits a custom value to be entered for the recipe total time.
* Properly calculates durations for times over 24 hours.
* Updates EasyRecipe converter to correctly process another very old recipe format.
* Fixes nofollow attribute for a link when "Open in a new window" is also checked.

= 0.7.0 (Jul. 26, 2017) =
* Adds support for inserting images into notes, descriptions, and other text fields.
* Introduces `tasty_recipes_comment_form_rating_position` filter to change the location of the rating buttons (default is 'before').
* Displays error in the admin when a Nutrifox API request fails.
* Fixes button style for WP 4.8 by ditching `button-link` class.
* Adds `mce-view` as a dependency for editor JS, to fix JavaScript errors in certain scenarios.
* Corrects Windows-style line endings to their cross-platform compatible equivalent during the conversion process, to ensure line breaks are appropriately respected.
* Updates EDD updater to version 1.6.12.

= 0.6.0 (Apr. 26, 2017) =
* Adds recipe conversion tool for WP Ultimate Recipe.
* Updates EasyRecipe converter to correctly process very old recipe format.
* Only includes first cuisine, category or method in JSON+LD when multiple are provided (comma-separated).
* Conditionally displays Nutrifox data as microdata, depending if nutrient is present in embed.
* Ensures recipe editor only renders once when TinyMCE is used multiple times in the admin.

= 0.5.0 (Mar. 27, 2017) =
* Magically uses a `tasty-recipes.php` file in the active theme directory as the recipe card template.
* Makes print button font color CSS more specific, to increase the likelihood it will display as white.
* Introduces `tasty_recipes_print_query_var` filter to modify the print URL keyword (default is 'print').
* Only renders recipe description microdata when there's a description for the recipe.
* Adds `.tasty-recipes-print-view` class to the `<body>` element when printing a recipe, for targeting CSS to the print view.
* Strips slashes from escaped characters in EasyRecipe conversion process.
* Transforms `[i]` and other styling markup when converting Meal Planner Pro recipe subheadings.

= 0.4.0 (Feb. 15, 2017) =
* Uses full image size in JSON+LD and microdata, instead of the thumbnail size, to ensure image meets minimum size recommended by search engines.
* Falls back to the post's first inline image for JSON+LD and microdata when recipe doesn't have an assigned image.
* Adds `rel="nofollow"` checkbox to WordPress link editor, making it possible to add `rel="nofollow"` to links in a recipe.
* Only includes `author` in JSON data when author is present, to ensure validator errors when it's not.
* Meal Planner Pro converter: handles `[b]` and `[i]` markup; strips empty erroneous lines.
* Warns user when post revisions are disabled, to ensure a backup is made prior to performing conversions.

= 0.3.1 (Feb. 9, 2017) =
* Fixes Meal Planner Pro recipe conversion tool to use the correct recipe in the conversion process.
* Errors early in the recipe batch conversion process to make it more obvious when support should help with diagnosis.

= 0.3.0 (Jan. 18, 2017) =
* Adds recipe conversion tools for Meal Planner Pro, Yumprint Recipe Card, and ZipList.
* Includes a template matching EasyRecipe HTML, for sites with existing CSS for styling EasyRecipe.
* Changes the default print button color to Tasty Slate, instead of an intense red.
* Introduces custom `tasty_recipes_the_content` filter to apply text formatting without third-party share buttons, etc.
* Ensures clicking the "Print" button on the print view for a recipe opens the computer's print window.
* Uses the post's featured image for Google Schema when recipe doesn't have an assigned image.
* Clips display of star rating based on rating percentage (e.g. 4.8 stars will display if the rating is 4.8).
* Includes `noindex,nofollow` SEO metadata on the recipe print view.
* Adds a `<h4>` section heading button to the recipe editor.
* EasyRecipe converter: Wraps section headings with `<h4>` upon transformation; fixes parsing of old EasyRecipe data; fixes recipe rating calculation.
* Updates EDD Software Licensing updater class to v1.6.8 from v1.6.5.
* EDD Software Licensing integration correctly registers site with WP Tasty, and deregisters when license key is removed.

= 0.2.0 (December 7th, 2016) =
* Fixed a variety of bugs in the EDD Software Licensing update check.
* Ensures slashed data doesn't save with slashes to the database.

= 0.1.0 (November 23rd, 2016) =
* Initial release.
