From aa269ebfbcce6d2d7c09284eb7696e3b81fb3759 Mon Sep 17 00:00:00 2001 From: Armand Tresova Date: Mon, 30 Dec 2024 18:27:53 -0500 Subject: [PATCH] Hotfix v1.9.2 --- CITATION.cff | 2 +- SECURITY.md | 4 +- composer.json | 2 +- composer.lock | 2 +- cooked.php | 4 +- includes/class.cooked-admin-enqueues.php | 7 - includes/class.cooked-enqueues.php | 6 +- includes/class.cooked-settings.php | 1 + languages/cooked.po | 174 +++++++++++----------- languages/cooked.pot | 178 +++++++++++------------ package-lock.json | 4 +- package.json | 2 +- readme.txt | 7 +- 13 files changed, 198 insertions(+), 195 deletions(-) diff --git a/CITATION.cff b/CITATION.cff index 4db69a8..ff530cd 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -6,7 +6,7 @@ authors: given-names: Justin - family-names: Tresova given-names: Armand -version: 1.9.1 +version: 1.9.2 doi: 10.5281/zenodo.1171250 date-released: 2017-05-08 url: "https://github.com/XjSv/cooked" \ No newline at end of file diff --git a/SECURITY.md b/SECURITY.md index 69259a9..f15a326 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -5,7 +5,9 @@ Versions that are currently being supported with security updates. | Version | Supported | | ------- | ------------------ | -| 1.9.0 | :white_check_mark: | +| 1.9.2 | :white_check_mark: | +| 1.9.1 | :x: | +| 1.9.0 | :x: | | 1.8.9 | :x: | | 1.8.8 | :x: | | 1.8.7 | :x: | diff --git a/composer.json b/composer.json index dccfb43..e6deb44 100644 --- a/composer.json +++ b/composer.json @@ -6,7 +6,7 @@ "recipe" ], "homepage": "https://wordpress.org/plugins/cooked/", - "version": "1.9.1", + "version": "1.9.2", "type": "wordpress-plugin", "license": "GPL-3.0-or-later", "prefer-stable": true, diff --git a/composer.lock b/composer.lock index 1b94ac4..3e10af3 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "86dfc023f600a3d6c113fb8543137fdd", + "content-hash": "fafbb15c7e8fec507c8ed0417978aa0b", "packages": [ { "name": "nxp/math-executor", diff --git a/cooked.php b/cooked.php index 156981b..313b59e 100644 --- a/cooked.php +++ b/cooked.php @@ -6,7 +6,7 @@ Description: A recipe plugin for WordPress. Author: Gora Tech Author URI: https://goratech.dev -Version: 1.9.1 +Version: 1.9.2 Text Domain: cooked Domain Path: languages License: GPL2 @@ -30,7 +30,7 @@ require_once __DIR__ . '/vendor/autoload.php'; -define( 'COOKED_VERSION', '1.9.1' ); +define( 'COOKED_VERSION', '1.9.2' ); define( 'COOKED_DEV', false ); if ( ! class_exists( 'Cooked_Plugin' ) ) : diff --git a/includes/class.cooked-admin-enqueues.php b/includes/class.cooked-admin-enqueues.php index 4a7cad4..50fd28d 100644 --- a/includes/class.cooked-admin-enqueues.php +++ b/includes/class.cooked-admin-enqueues.php @@ -148,14 +148,7 @@ public function admin_enqueues( $hook ) { /* translators: confirmation for migrating all ### recipes, where ### displays the total number for the migration. */ 'i18n_confirm_migrate_recipes' => sprintf(__('Please confirm that you are ready to migrate all %s recipes.', 'cooked'), number_format($total_old_recipes)), 'i18n_confirm_import_recipes' => __('Please confirm that you are ready to import all recipes.', 'cooked'), - 'permalink_structure' => get_option('permalink_structure'), 'wp_editor_roles_allowed' => esc_attr($wp_editor_roles_allowed), - 'browse_recipes_slug' => !isset($_cooked_settings['browse_recipes_slug']) ? 'browse-recipes' : $_cooked_settings['browse_recipes_slug'], - 'recipe_category_slug' => !isset($_cooked_settings['recipe_category_permalink']) ? 'recipe-category' : $_cooked_settings['recipe_category_permalink'], - 'recipe_cooking_method_slug' => !isset($_cooked_settings['recipe_cooking_method_permalink']) ? 'cooking-method' : $_cooked_settings['recipe_cooking_method_permalink'], - 'recipe_cuisine_slug' => !isset($_cooked_settings['recipe_cuisine_permalink']) ? 'cuisine' : $_cooked_settings['recipe_cuisine_permalink'], - 'recipe_tags_slug' => !isset($_cooked_settings['recipe_tag_permalink']) ? 'recipe-tag' : $_cooked_settings['recipe_tag_permalink'], - 'recipe_diet_slug' => !isset($_cooked_settings['recipe_diet_permalink']) ? 'diet' : $_cooked_settings['recipe_diet_permalink'], ]; // Cooked Admin Style Assets diff --git a/includes/class.cooked-enqueues.php b/includes/class.cooked-enqueues.php index 782e06d..520607d 100644 --- a/includes/class.cooked-enqueues.php +++ b/includes/class.cooked-enqueues.php @@ -29,12 +29,16 @@ function __construct() { public function enqueues($hook) { global $_cooked_settings; + $browse_page_id = !empty($_cooked_settings['browse_page']) ? $_cooked_settings['browse_page'] : false; + $browse_page = get_post($browse_page_id); + $browse_recipes_slug = !empty($browse_page) ? $browse_page->post_name : ''; + $cooked_js_vars = [ 'ajax_url' => admin_url('admin-ajax.php'), 'timer_sound' => apply_filters('cooked_timer_sound_mp3', COOKED_URL . 'assets/audio/ding.mp3'), 'i18n_timer' => __('Timer', 'cooked'), 'permalink_structure' => get_option('permalink_structure'), - 'browse_recipes_slug' => !isset($_cooked_settings['browse_recipes_slug']) ? 'browse-recipes' : $_cooked_settings['browse_recipes_slug'], + 'browse_recipes_slug' => $browse_recipes_slug, 'recipe_category_slug' => !isset($_cooked_settings['recipe_category_permalink']) ? 'recipe-category' : $_cooked_settings['recipe_category_permalink'], 'recipe_cooking_method_slug' => !isset($_cooked_settings['recipe_cooking_method_permalink']) ? 'cooking-method' : $_cooked_settings['recipe_cooking_method_permalink'], 'recipe_cuisine_slug' => !isset($_cooked_settings['recipe_cuisine_permalink']) ? 'cuisine' : $_cooked_settings['recipe_cuisine_permalink'], diff --git a/includes/class.cooked-settings.php b/includes/class.cooked-settings.php index 5487e94..5912a71 100644 --- a/includes/class.cooked-settings.php +++ b/includes/class.cooked-settings.php @@ -112,6 +112,7 @@ private static function needs_rewrite_flush( $old_version ) { $versions_requiring_flush = [ '1.9.0', // New rewrite rules for Browse page introduced. '1.9.1', // Hotfix for the permalink structure. + '1.9.2', // Hotfix for the permalink structure. ]; // If old version is newer than our latest flush requirement, no flush needed diff --git a/languages/cooked.po b/languages/cooked.po index f99a1d2..2c08f06 100644 --- a/languages/cooked.po +++ b/languages/cooked.po @@ -167,7 +167,7 @@ msgstr "" msgid "Error importing recipe." msgstr "" -#: includes/class.cooked-enqueues.php:35 +#: includes/class.cooked-enqueues.php:39 #: includes/class.cooked-recipe-meta.php:1221 msgid "Timer" msgstr "" @@ -195,7 +195,7 @@ msgstr "" #: includes/class.cooked-functions.php:125 #: includes/class.cooked-recipe-meta.php:1166 -#: includes/class.cooked-settings.php:197 +#: includes/class.cooked-settings.php:198 msgid "Excerpt" msgstr "" @@ -206,7 +206,7 @@ msgstr "" #: includes/class.cooked-functions.php:129 #: includes/class.cooked-recipe-meta.php:1190 #: includes/class.cooked-recipes.php:626 -#: includes/class.cooked-settings.php:198 +#: includes/class.cooked-settings.php:199 #: includes/class.cooked-shortcodes.php:744 msgid "Notes" msgstr "" @@ -289,7 +289,7 @@ msgid "Begin Import" msgstr "" #: includes/class.cooked-import.php:119 -#: includes/class.cooked-settings.php:553 +#: includes/class.cooked-settings.php:554 msgid "reload" msgstr "" @@ -572,7 +572,7 @@ msgid "cans" msgstr "" #: includes/class.cooked-measurements.php:195 -#: includes/class.cooked-settings.php:202 +#: includes/class.cooked-settings.php:203 msgid "Servings" msgstr "" @@ -971,13 +971,13 @@ msgid "This description is used for SEO purposes and is optional. By default, Co msgstr "" #: includes/class.cooked-recipe-meta.php:380 -#: includes/class.cooked-settings.php:196 +#: includes/class.cooked-settings.php:197 msgid "Difficulty Level" msgstr "" #: includes/class.cooked-recipe-meta.php:389 #: includes/class.cooked-recipe-meta.php:949 -#: includes/class.cooked-settings.php:199 +#: includes/class.cooked-settings.php:200 #: includes/class.cooked-shortcodes.php:433 #: includes/class.cooked-shortcodes.php:641 msgid "Prep Time" @@ -991,7 +991,7 @@ msgstr "" #: includes/class.cooked-recipe-meta.php:394 #: includes/class.cooked-recipe-meta.php:950 -#: includes/class.cooked-settings.php:200 +#: includes/class.cooked-settings.php:201 #: includes/class.cooked-shortcodes.php:434 #: includes/class.cooked-shortcodes.php:650 msgid "Cook Time" @@ -999,7 +999,7 @@ msgstr "" #: includes/class.cooked-recipe-meta.php:399 #: includes/class.cooked-recipe-meta.php:951 -#: includes/class.cooked-settings.php:201 +#: includes/class.cooked-settings.php:202 #: includes/class.cooked-shortcodes.php:435 #: includes/class.cooked-shortcodes.php:661 #: includes/class.cooked-shortcodes.php:668 @@ -1139,7 +1139,7 @@ msgid "Available Variables" msgstr "" #: includes/class.cooked-recipe-meta.php:948 -#: includes/class.cooked-settings.php:194 +#: includes/class.cooked-settings.php:195 #: includes/class.cooked-shortcodes.php:430 #: includes/class.cooked-shortcodes.php:595 msgid "Author" @@ -1156,7 +1156,7 @@ msgid "Servings Switcher" msgstr "" #: includes/class.cooked-recipe-meta.php:954 -#: includes/class.cooked-settings.php:195 +#: includes/class.cooked-settings.php:196 #: includes/class.cooked-shortcodes.php:688 #: includes/class.cooked-shortcodes.php:691 #: includes/class.cooked-taxonomies.php:39 @@ -1414,12 +1414,12 @@ msgid "Browse" msgstr "" #: includes/class.cooked-recipes.php:961 -#: includes/class.cooked-settings.php:135 +#: includes/class.cooked-settings.php:136 msgid "No categories" msgstr "" #: includes/class.cooked-recipes.php:964 -#: includes/class.cooked-settings.php:182 +#: includes/class.cooked-settings.php:183 #: includes/class.cooked-taxonomies.php:38 #: includes/class.cooked-taxonomies.php:48 msgid "Categories" @@ -1459,309 +1459,309 @@ msgstr "" msgid "Cooked settings has been updated!" msgstr "" -#: includes/class.cooked-settings.php:134 +#: includes/class.cooked-settings.php:135 msgid "Choose a page..." msgstr "" -#: includes/class.cooked-settings.php:134 +#: includes/class.cooked-settings.php:135 msgid "No pages" msgstr "" -#: includes/class.cooked-settings.php:135 +#: includes/class.cooked-settings.php:136 msgid "No default" msgstr "" -#: includes/class.cooked-settings.php:155 +#: includes/class.cooked-settings.php:156 msgid "General" msgstr "" -#: includes/class.cooked-settings.php:159 +#: includes/class.cooked-settings.php:160 msgid "Browse/Search Recipes Page" msgstr "" #. translators: a description on how to add the [cooked-browse] shortcode to a page -#: includes/class.cooked-settings.php:161 +#: includes/class.cooked-settings.php:162 msgid "Create a page with the %s shortcode on it, then choose it from this dropdown." msgstr "" -#: includes/class.cooked-settings.php:167 +#: includes/class.cooked-settings.php:168 msgid "Recipes Per Page" msgstr "" #. translators: a description on how to choose the default number of recipes per page. -#: includes/class.cooked-settings.php:169 +#: includes/class.cooked-settings.php:170 msgid "Choose the default (set via the %s panel) or choose a different number here." msgstr "" #. translators: a description on how to choose the default number of recipes per page. -#: includes/class.cooked-settings.php:169 +#: includes/class.cooked-settings.php:170 msgid "Settings > Reading" msgstr "" -#: includes/class.cooked-settings.php:175 +#: includes/class.cooked-settings.php:176 msgid "Recipe Taxonomies" msgstr "" -#: includes/class.cooked-settings.php:176 +#: includes/class.cooked-settings.php:177 msgid "Choose which taxonomies you want to enable for your recipes." msgstr "" -#: includes/class.cooked-settings.php:187 +#: includes/class.cooked-settings.php:188 msgid "Global Recipe Toggles" msgstr "" -#: includes/class.cooked-settings.php:188 +#: includes/class.cooked-settings.php:189 msgid "You can quickly hide or show different recipe elements (site-wide) with these checkboxes." msgstr "" -#: includes/class.cooked-settings.php:207 +#: includes/class.cooked-settings.php:208 msgid "Carbs Format" msgstr "" -#: includes/class.cooked-settings.php:208 +#: includes/class.cooked-settings.php:209 msgid "You can display carbs as \"Total\" or \"Net\"." msgstr "" -#: includes/class.cooked-settings.php:214 +#: includes/class.cooked-settings.php:215 msgid "Total Carbs" msgstr "" -#: includes/class.cooked-settings.php:215 +#: includes/class.cooked-settings.php:216 msgid "Net Carbs" msgstr "" -#: includes/class.cooked-settings.php:220 +#: includes/class.cooked-settings.php:221 msgid "Author Name Format" msgstr "" -#: includes/class.cooked-settings.php:221 +#: includes/class.cooked-settings.php:222 msgid "You can show the full author's name or just a part of it." msgstr "" -#: includes/class.cooked-settings.php:227 +#: includes/class.cooked-settings.php:228 msgid "Full name" msgstr "" -#: includes/class.cooked-settings.php:228 +#: includes/class.cooked-settings.php:229 msgid "Full first name w/last name initial" msgstr "" -#: includes/class.cooked-settings.php:229 +#: includes/class.cooked-settings.php:230 msgid "First name initial w/full last name" msgstr "" -#: includes/class.cooked-settings.php:230 +#: includes/class.cooked-settings.php:231 msgid "First name only" msgstr "" -#: includes/class.cooked-settings.php:235 +#: includes/class.cooked-settings.php:236 msgid "Author Links" msgstr "" -#: includes/class.cooked-settings.php:236 +#: includes/class.cooked-settings.php:237 msgid "If you do not want the author names to link to the author recipe listings, you can disable them here." msgstr "" -#: includes/class.cooked-settings.php:243 +#: includes/class.cooked-settings.php:244 msgid "Disable Author Links" msgstr "" -#: includes/class.cooked-settings.php:248 +#: includes/class.cooked-settings.php:249 msgid "Default Category" msgstr "" #. translators: a description on how to set the default recipe category for the [cooked-browse] shortcode. -#: includes/class.cooked-settings.php:250 +#: includes/class.cooked-settings.php:251 msgid "Optionally set the default recipe category for your %s shortcode display." msgstr "" -#: includes/class.cooked-settings.php:256 +#: includes/class.cooked-settings.php:257 msgid "Default Sort Order" msgstr "" #. translators: a description on how to set the default sort order for the [cooked-browse] shortcode. -#: includes/class.cooked-settings.php:258 +#: includes/class.cooked-settings.php:259 msgid "Set the default sort order for your %s shortcode display." msgstr "" -#: includes/class.cooked-settings.php:264 +#: includes/class.cooked-settings.php:265 msgid "Newest First" msgstr "" -#: includes/class.cooked-settings.php:265 +#: includes/class.cooked-settings.php:266 msgid "Oldest First" msgstr "" -#: includes/class.cooked-settings.php:266 +#: includes/class.cooked-settings.php:267 msgid "Alphabetical" msgstr "" -#: includes/class.cooked-settings.php:267 +#: includes/class.cooked-settings.php:268 msgid "Alphabetical (reversed)" msgstr "" -#: includes/class.cooked-settings.php:272 +#: includes/class.cooked-settings.php:273 msgid "WP Editor Roles" msgstr "" -#: includes/class.cooked-settings.php:273 +#: includes/class.cooked-settings.php:274 msgid "Choose which user roles can use the WP Editor for the Excerpt, Directions & Notes fields." msgstr "" -#: includes/class.cooked-settings.php:279 +#: includes/class.cooked-settings.php:280 msgid "Advanced Settings" msgstr "" #. translators: an option to only show recipes with the [cooked-recipe] shortcode. -#: includes/class.cooked-settings.php:289 +#: includes/class.cooked-settings.php:290 msgid "Disable Public Recipes" msgstr "" #. translators: an option to only show recipes with the [cooked-recipe] shortcode. -#: includes/class.cooked-settings.php:289 +#: includes/class.cooked-settings.php:290 msgid "Only show recipes using the %s shortcode." msgstr "" #. translators: an option to disable "meta" tags. -#: includes/class.cooked-settings.php:291 +#: includes/class.cooked-settings.php:292 msgid "Disable %s Tags" msgstr "" #. translators: an option to disable "meta" tags. -#: includes/class.cooked-settings.php:291 +#: includes/class.cooked-settings.php:292 msgid "Prevents duplicates when tags already exist." msgstr "" -#: includes/class.cooked-settings.php:292 +#: includes/class.cooked-settings.php:293 msgid "Disable \"Servings Switcher\"" msgstr "" -#: includes/class.cooked-settings.php:292 +#: includes/class.cooked-settings.php:293 msgid "Removes the servings dropdown on recipes." msgstr "" -#: includes/class.cooked-settings.php:293 +#: includes/class.cooked-settings.php:294 msgid "Disable Recipe Schema Output" msgstr "" -#: includes/class.cooked-settings.php:293 +#: includes/class.cooked-settings.php:294 msgid "You should only do this if you're using something else to output schema information." msgstr "" -#: includes/class.cooked-settings.php:294 +#: includes/class.cooked-settings.php:295 msgid "Disable Recipe Archive Page" msgstr "" -#: includes/class.cooked-settings.php:294 +#: includes/class.cooked-settings.php:295 msgid "Prevents the recipe archive from being displayed." msgstr "" -#: includes/class.cooked-settings.php:301 +#: includes/class.cooked-settings.php:302 msgid "Design" msgstr "" -#: includes/class.cooked-settings.php:305 +#: includes/class.cooked-settings.php:306 msgid "Dark Mode" msgstr "" -#: includes/class.cooked-settings.php:306 +#: includes/class.cooked-settings.php:307 msgid "If your site has a dark background, you should enable \"Dark Mode\" so that Cooked can match this style." msgstr "" -#: includes/class.cooked-settings.php:312 +#: includes/class.cooked-settings.php:313 msgid "Enable \"Dark Mode\"" msgstr "" -#: includes/class.cooked-settings.php:317 +#: includes/class.cooked-settings.php:318 msgid "Author Images" msgstr "" -#: includes/class.cooked-settings.php:318 +#: includes/class.cooked-settings.php:319 msgid "If you do not want to display the author images (avatars), you can disable them here." msgstr "" -#: includes/class.cooked-settings.php:325 +#: includes/class.cooked-settings.php:326 msgid "Hide Author Images" msgstr "" -#: includes/class.cooked-settings.php:330 +#: includes/class.cooked-settings.php:331 msgid "Main Color" msgstr "" -#: includes/class.cooked-settings.php:331 +#: includes/class.cooked-settings.php:332 msgid "Used on buttons, cooking timer, etc." msgstr "" -#: includes/class.cooked-settings.php:337 +#: includes/class.cooked-settings.php:338 msgid "Main Color (on hover)" msgstr "" -#: includes/class.cooked-settings.php:338 +#: includes/class.cooked-settings.php:339 msgid "Used when hovering over buttons." msgstr "" -#: includes/class.cooked-settings.php:344 +#: includes/class.cooked-settings.php:345 msgid "First Responsive Breakpoint" msgstr "" -#: includes/class.cooked-settings.php:345 +#: includes/class.cooked-settings.php:346 msgid "Set the first responsive breakpoint. Best for large tablets." msgstr "" -#: includes/class.cooked-settings.php:351 +#: includes/class.cooked-settings.php:352 msgid "Second Responsive Breakpoint" msgstr "" -#: includes/class.cooked-settings.php:352 +#: includes/class.cooked-settings.php:353 msgid "Set the second responsive breakpoint. Best for small tablets." msgstr "" -#: includes/class.cooked-settings.php:358 +#: includes/class.cooked-settings.php:359 msgid "Third Responsive Breakpoint" msgstr "" -#: includes/class.cooked-settings.php:359 +#: includes/class.cooked-settings.php:360 msgid "Set the third responsive breakpoint. Best for phones and other small devices." msgstr "" -#: includes/class.cooked-settings.php:367 +#: includes/class.cooked-settings.php:368 msgid "Permalinks" msgstr "" -#: includes/class.cooked-settings.php:371 +#: includes/class.cooked-settings.php:372 msgid "Recipe Permalink" msgstr "" -#: includes/class.cooked-settings.php:374 +#: includes/class.cooked-settings.php:375 msgid "recipe-name" msgstr "" -#: includes/class.cooked-settings.php:378 +#: includes/class.cooked-settings.php:379 msgid "Recipe Author Permalink" msgstr "" -#: includes/class.cooked-settings.php:381 +#: includes/class.cooked-settings.php:382 msgid "author-name" msgstr "" -#: includes/class.cooked-settings.php:385 +#: includes/class.cooked-settings.php:386 msgid "Recipe Category Permalink" msgstr "" -#: includes/class.cooked-settings.php:388 +#: includes/class.cooked-settings.php:389 msgid "recipe-category-name" msgstr "" #. translators: posts_per_page default -#: includes/class.cooked-settings.php:399 +#: includes/class.cooked-settings.php:400 msgid "WordPress Default %s" msgstr "" -#: includes/class.cooked-settings.php:404 +#: includes/class.cooked-settings.php:405 msgid "Show All (no pagination)" msgstr "" -#: includes/class.cooked-settings.php:548 +#: includes/class.cooked-settings.php:549 msgid "Begin Migration" msgstr "" diff --git a/languages/cooked.pot b/languages/cooked.pot index a0f7488..2573261 100644 --- a/languages/cooked.pot +++ b/languages/cooked.pot @@ -2,14 +2,14 @@ # This file is distributed under the GPL2. msgid "" msgstr "" -"Project-Id-Version: Cooked - Recipe Management 1.9.1\n" +"Project-Id-Version: Cooked - Recipe Management 1.9.2\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/cooked\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2024-12-30T17:30:38-05:00\n" +"POT-Creation-Date: 2024-12-30T18:24:53-05:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.11.0\n" "X-Domain: cooked\n" @@ -170,7 +170,7 @@ msgstr "" msgid "Error importing recipe." msgstr "" -#: includes/class.cooked-enqueues.php:35 +#: includes/class.cooked-enqueues.php:39 #: includes/class.cooked-recipe-meta.php:1221 msgid "Timer" msgstr "" @@ -198,7 +198,7 @@ msgstr "" #: includes/class.cooked-functions.php:125 #: includes/class.cooked-recipe-meta.php:1166 -#: includes/class.cooked-settings.php:197 +#: includes/class.cooked-settings.php:198 msgid "Excerpt" msgstr "" @@ -209,7 +209,7 @@ msgstr "" #: includes/class.cooked-functions.php:129 #: includes/class.cooked-recipe-meta.php:1190 #: includes/class.cooked-recipes.php:626 -#: includes/class.cooked-settings.php:198 +#: includes/class.cooked-settings.php:199 #: includes/class.cooked-shortcodes.php:744 msgid "Notes" msgstr "" @@ -292,7 +292,7 @@ msgid "Begin Import" msgstr "" #: includes/class.cooked-import.php:119 -#: includes/class.cooked-settings.php:553 +#: includes/class.cooked-settings.php:554 msgid "reload" msgstr "" @@ -575,7 +575,7 @@ msgid "cans" msgstr "" #: includes/class.cooked-measurements.php:195 -#: includes/class.cooked-settings.php:202 +#: includes/class.cooked-settings.php:203 msgid "Servings" msgstr "" @@ -974,13 +974,13 @@ msgid "This description is used for SEO purposes and is optional. By default, Co msgstr "" #: includes/class.cooked-recipe-meta.php:380 -#: includes/class.cooked-settings.php:196 +#: includes/class.cooked-settings.php:197 msgid "Difficulty Level" msgstr "" #: includes/class.cooked-recipe-meta.php:389 #: includes/class.cooked-recipe-meta.php:949 -#: includes/class.cooked-settings.php:199 +#: includes/class.cooked-settings.php:200 #: includes/class.cooked-shortcodes.php:433 #: includes/class.cooked-shortcodes.php:641 msgid "Prep Time" @@ -994,7 +994,7 @@ msgstr "" #: includes/class.cooked-recipe-meta.php:394 #: includes/class.cooked-recipe-meta.php:950 -#: includes/class.cooked-settings.php:200 +#: includes/class.cooked-settings.php:201 #: includes/class.cooked-shortcodes.php:434 #: includes/class.cooked-shortcodes.php:650 msgid "Cook Time" @@ -1002,7 +1002,7 @@ msgstr "" #: includes/class.cooked-recipe-meta.php:399 #: includes/class.cooked-recipe-meta.php:951 -#: includes/class.cooked-settings.php:201 +#: includes/class.cooked-settings.php:202 #: includes/class.cooked-shortcodes.php:435 #: includes/class.cooked-shortcodes.php:661 #: includes/class.cooked-shortcodes.php:668 @@ -1142,7 +1142,7 @@ msgid "Available Variables" msgstr "" #: includes/class.cooked-recipe-meta.php:948 -#: includes/class.cooked-settings.php:194 +#: includes/class.cooked-settings.php:195 #: includes/class.cooked-shortcodes.php:430 #: includes/class.cooked-shortcodes.php:595 msgid "Author" @@ -1159,7 +1159,7 @@ msgid "Servings Switcher" msgstr "" #: includes/class.cooked-recipe-meta.php:954 -#: includes/class.cooked-settings.php:195 +#: includes/class.cooked-settings.php:196 #: includes/class.cooked-shortcodes.php:688 #: includes/class.cooked-shortcodes.php:691 #: includes/class.cooked-taxonomies.php:39 @@ -1417,12 +1417,12 @@ msgid "Browse" msgstr "" #: includes/class.cooked-recipes.php:961 -#: includes/class.cooked-settings.php:135 +#: includes/class.cooked-settings.php:136 msgid "No categories" msgstr "" #: includes/class.cooked-recipes.php:964 -#: includes/class.cooked-settings.php:182 +#: includes/class.cooked-settings.php:183 #: includes/class.cooked-taxonomies.php:38 #: includes/class.cooked-taxonomies.php:48 msgid "Categories" @@ -1462,309 +1462,309 @@ msgstr "" msgid "Cooked settings has been updated!" msgstr "" -#: includes/class.cooked-settings.php:134 +#: includes/class.cooked-settings.php:135 msgid "Choose a page..." msgstr "" -#: includes/class.cooked-settings.php:134 +#: includes/class.cooked-settings.php:135 msgid "No pages" msgstr "" -#: includes/class.cooked-settings.php:135 +#: includes/class.cooked-settings.php:136 msgid "No default" msgstr "" -#: includes/class.cooked-settings.php:155 +#: includes/class.cooked-settings.php:156 msgid "General" msgstr "" -#: includes/class.cooked-settings.php:159 +#: includes/class.cooked-settings.php:160 msgid "Browse/Search Recipes Page" msgstr "" #. translators: a description on how to add the [cooked-browse] shortcode to a page -#: includes/class.cooked-settings.php:161 +#: includes/class.cooked-settings.php:162 msgid "Create a page with the %s shortcode on it, then choose it from this dropdown." msgstr "" -#: includes/class.cooked-settings.php:167 +#: includes/class.cooked-settings.php:168 msgid "Recipes Per Page" msgstr "" #. translators: a description on how to choose the default number of recipes per page. -#: includes/class.cooked-settings.php:169 +#: includes/class.cooked-settings.php:170 msgid "Choose the default (set via the %s panel) or choose a different number here." msgstr "" #. translators: a description on how to choose the default number of recipes per page. -#: includes/class.cooked-settings.php:169 +#: includes/class.cooked-settings.php:170 msgid "Settings > Reading" msgstr "" -#: includes/class.cooked-settings.php:175 +#: includes/class.cooked-settings.php:176 msgid "Recipe Taxonomies" msgstr "" -#: includes/class.cooked-settings.php:176 +#: includes/class.cooked-settings.php:177 msgid "Choose which taxonomies you want to enable for your recipes." msgstr "" -#: includes/class.cooked-settings.php:187 +#: includes/class.cooked-settings.php:188 msgid "Global Recipe Toggles" msgstr "" -#: includes/class.cooked-settings.php:188 +#: includes/class.cooked-settings.php:189 msgid "You can quickly hide or show different recipe elements (site-wide) with these checkboxes." msgstr "" -#: includes/class.cooked-settings.php:207 +#: includes/class.cooked-settings.php:208 msgid "Carbs Format" msgstr "" -#: includes/class.cooked-settings.php:208 +#: includes/class.cooked-settings.php:209 msgid "You can display carbs as \"Total\" or \"Net\"." msgstr "" -#: includes/class.cooked-settings.php:214 +#: includes/class.cooked-settings.php:215 msgid "Total Carbs" msgstr "" -#: includes/class.cooked-settings.php:215 +#: includes/class.cooked-settings.php:216 msgid "Net Carbs" msgstr "" -#: includes/class.cooked-settings.php:220 +#: includes/class.cooked-settings.php:221 msgid "Author Name Format" msgstr "" -#: includes/class.cooked-settings.php:221 +#: includes/class.cooked-settings.php:222 msgid "You can show the full author's name or just a part of it." msgstr "" -#: includes/class.cooked-settings.php:227 +#: includes/class.cooked-settings.php:228 msgid "Full name" msgstr "" -#: includes/class.cooked-settings.php:228 +#: includes/class.cooked-settings.php:229 msgid "Full first name w/last name initial" msgstr "" -#: includes/class.cooked-settings.php:229 +#: includes/class.cooked-settings.php:230 msgid "First name initial w/full last name" msgstr "" -#: includes/class.cooked-settings.php:230 +#: includes/class.cooked-settings.php:231 msgid "First name only" msgstr "" -#: includes/class.cooked-settings.php:235 +#: includes/class.cooked-settings.php:236 msgid "Author Links" msgstr "" -#: includes/class.cooked-settings.php:236 +#: includes/class.cooked-settings.php:237 msgid "If you do not want the author names to link to the author recipe listings, you can disable them here." msgstr "" -#: includes/class.cooked-settings.php:243 +#: includes/class.cooked-settings.php:244 msgid "Disable Author Links" msgstr "" -#: includes/class.cooked-settings.php:248 +#: includes/class.cooked-settings.php:249 msgid "Default Category" msgstr "" #. translators: a description on how to set the default recipe category for the [cooked-browse] shortcode. -#: includes/class.cooked-settings.php:250 +#: includes/class.cooked-settings.php:251 msgid "Optionally set the default recipe category for your %s shortcode display." msgstr "" -#: includes/class.cooked-settings.php:256 +#: includes/class.cooked-settings.php:257 msgid "Default Sort Order" msgstr "" #. translators: a description on how to set the default sort order for the [cooked-browse] shortcode. -#: includes/class.cooked-settings.php:258 +#: includes/class.cooked-settings.php:259 msgid "Set the default sort order for your %s shortcode display." msgstr "" -#: includes/class.cooked-settings.php:264 +#: includes/class.cooked-settings.php:265 msgid "Newest First" msgstr "" -#: includes/class.cooked-settings.php:265 +#: includes/class.cooked-settings.php:266 msgid "Oldest First" msgstr "" -#: includes/class.cooked-settings.php:266 +#: includes/class.cooked-settings.php:267 msgid "Alphabetical" msgstr "" -#: includes/class.cooked-settings.php:267 +#: includes/class.cooked-settings.php:268 msgid "Alphabetical (reversed)" msgstr "" -#: includes/class.cooked-settings.php:272 +#: includes/class.cooked-settings.php:273 msgid "WP Editor Roles" msgstr "" -#: includes/class.cooked-settings.php:273 +#: includes/class.cooked-settings.php:274 msgid "Choose which user roles can use the WP Editor for the Excerpt, Directions & Notes fields." msgstr "" -#: includes/class.cooked-settings.php:279 +#: includes/class.cooked-settings.php:280 msgid "Advanced Settings" msgstr "" #. translators: an option to only show recipes with the [cooked-recipe] shortcode. -#: includes/class.cooked-settings.php:289 +#: includes/class.cooked-settings.php:290 msgid "Disable Public Recipes" msgstr "" #. translators: an option to only show recipes with the [cooked-recipe] shortcode. -#: includes/class.cooked-settings.php:289 +#: includes/class.cooked-settings.php:290 msgid "Only show recipes using the %s shortcode." msgstr "" #. translators: an option to disable "meta" tags. -#: includes/class.cooked-settings.php:291 +#: includes/class.cooked-settings.php:292 msgid "Disable %s Tags" msgstr "" #. translators: an option to disable "meta" tags. -#: includes/class.cooked-settings.php:291 +#: includes/class.cooked-settings.php:292 msgid "Prevents duplicates when tags already exist." msgstr "" -#: includes/class.cooked-settings.php:292 +#: includes/class.cooked-settings.php:293 msgid "Disable \"Servings Switcher\"" msgstr "" -#: includes/class.cooked-settings.php:292 +#: includes/class.cooked-settings.php:293 msgid "Removes the servings dropdown on recipes." msgstr "" -#: includes/class.cooked-settings.php:293 +#: includes/class.cooked-settings.php:294 msgid "Disable Recipe Schema Output" msgstr "" -#: includes/class.cooked-settings.php:293 +#: includes/class.cooked-settings.php:294 msgid "You should only do this if you're using something else to output schema information." msgstr "" -#: includes/class.cooked-settings.php:294 +#: includes/class.cooked-settings.php:295 msgid "Disable Recipe Archive Page" msgstr "" -#: includes/class.cooked-settings.php:294 +#: includes/class.cooked-settings.php:295 msgid "Prevents the recipe archive from being displayed." msgstr "" -#: includes/class.cooked-settings.php:301 +#: includes/class.cooked-settings.php:302 msgid "Design" msgstr "" -#: includes/class.cooked-settings.php:305 +#: includes/class.cooked-settings.php:306 msgid "Dark Mode" msgstr "" -#: includes/class.cooked-settings.php:306 +#: includes/class.cooked-settings.php:307 msgid "If your site has a dark background, you should enable \"Dark Mode\" so that Cooked can match this style." msgstr "" -#: includes/class.cooked-settings.php:312 +#: includes/class.cooked-settings.php:313 msgid "Enable \"Dark Mode\"" msgstr "" -#: includes/class.cooked-settings.php:317 +#: includes/class.cooked-settings.php:318 msgid "Author Images" msgstr "" -#: includes/class.cooked-settings.php:318 +#: includes/class.cooked-settings.php:319 msgid "If you do not want to display the author images (avatars), you can disable them here." msgstr "" -#: includes/class.cooked-settings.php:325 +#: includes/class.cooked-settings.php:326 msgid "Hide Author Images" msgstr "" -#: includes/class.cooked-settings.php:330 +#: includes/class.cooked-settings.php:331 msgid "Main Color" msgstr "" -#: includes/class.cooked-settings.php:331 +#: includes/class.cooked-settings.php:332 msgid "Used on buttons, cooking timer, etc." msgstr "" -#: includes/class.cooked-settings.php:337 +#: includes/class.cooked-settings.php:338 msgid "Main Color (on hover)" msgstr "" -#: includes/class.cooked-settings.php:338 +#: includes/class.cooked-settings.php:339 msgid "Used when hovering over buttons." msgstr "" -#: includes/class.cooked-settings.php:344 +#: includes/class.cooked-settings.php:345 msgid "First Responsive Breakpoint" msgstr "" -#: includes/class.cooked-settings.php:345 +#: includes/class.cooked-settings.php:346 msgid "Set the first responsive breakpoint. Best for large tablets." msgstr "" -#: includes/class.cooked-settings.php:351 +#: includes/class.cooked-settings.php:352 msgid "Second Responsive Breakpoint" msgstr "" -#: includes/class.cooked-settings.php:352 +#: includes/class.cooked-settings.php:353 msgid "Set the second responsive breakpoint. Best for small tablets." msgstr "" -#: includes/class.cooked-settings.php:358 +#: includes/class.cooked-settings.php:359 msgid "Third Responsive Breakpoint" msgstr "" -#: includes/class.cooked-settings.php:359 +#: includes/class.cooked-settings.php:360 msgid "Set the third responsive breakpoint. Best for phones and other small devices." msgstr "" -#: includes/class.cooked-settings.php:367 +#: includes/class.cooked-settings.php:368 msgid "Permalinks" msgstr "" -#: includes/class.cooked-settings.php:371 +#: includes/class.cooked-settings.php:372 msgid "Recipe Permalink" msgstr "" -#: includes/class.cooked-settings.php:374 +#: includes/class.cooked-settings.php:375 msgid "recipe-name" msgstr "" -#: includes/class.cooked-settings.php:378 +#: includes/class.cooked-settings.php:379 msgid "Recipe Author Permalink" msgstr "" -#: includes/class.cooked-settings.php:381 +#: includes/class.cooked-settings.php:382 msgid "author-name" msgstr "" -#: includes/class.cooked-settings.php:385 +#: includes/class.cooked-settings.php:386 msgid "Recipe Category Permalink" msgstr "" -#: includes/class.cooked-settings.php:388 +#: includes/class.cooked-settings.php:389 msgid "recipe-category-name" msgstr "" #. translators: posts_per_page default -#: includes/class.cooked-settings.php:399 +#: includes/class.cooked-settings.php:400 msgid "WordPress Default %s" msgstr "" -#: includes/class.cooked-settings.php:404 +#: includes/class.cooked-settings.php:405 msgid "Show All (no pagination)" msgstr "" -#: includes/class.cooked-settings.php:548 +#: includes/class.cooked-settings.php:549 msgid "Begin Migration" msgstr "" diff --git a/package-lock.json b/package-lock.json index bdf5396..ff34e22 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "cooked", - "version": "1.9.1", + "version": "1.9.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "cooked", - "version": "1.9.1", + "version": "1.9.2", "license": "ISC", "devDependencies": { "@playwright/test": "^1.48.2", diff --git a/package.json b/package.json index a5d345a..9c0391c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cooked", - "version": "1.9.1", + "version": "1.9.2", "description": "Cooked is the absolute best way to create & display recipes with WordPress. SEO optimized (rich snippets), galleries, cooking timers, printable recipes and much more.", "main": "index.js", "scripts": { diff --git a/readme.txt b/readme.txt index f63d232..1c81737 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: xjsv, boxystudio Tags: recipe, recipes, food, cooking, nutrition Requires at least: 4.7 Tested up to: 6.7.1 -Stable tag: 1.9.1 +Stable tag: 1.9.2 Requires PHP: 7.4 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -76,10 +76,13 @@ Be sure to check the [Cooked Documentation](https://github.com/XjSv/Cooked/wiki) == Upgrade Notice == -Version 1.9.1 includes a hotfix for the permalink structure that was introduced in version 1.9.0. Update is highly recommended! +Version 1.9.2 includes a hotfix for the permalink structure that was introduced in version 1.9.0. Update is highly recommended! == Changelog == += 1.9.2 = +* **FIX:** Fixed issue with the permalink structure specifically for the Browse Recipe page. + = 1.9.1 = * **FIX:** Hotfix for the permalink structure.