diff --git a/CITATION.cff b/CITATION.cff index a2fdf3a..b83d074 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -6,7 +6,7 @@ authors: given-names: Justin - family-names: Tresova given-names: Armand -version: 1.9.4 +version: 1.9.5 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/composer.json b/composer.json index 0abb586..09b537b 100644 --- a/composer.json +++ b/composer.json @@ -6,7 +6,7 @@ "recipe" ], "homepage": "https://wordpress.org/plugins/cooked/", - "version": "1.9.4", + "version": "1.9.5", "type": "wordpress-plugin", "license": "GPL-3.0-or-later", "prefer-stable": true, diff --git a/composer.lock b/composer.lock index 2e2b793..4989a23 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": "76f472c520283582546e0cac0a9ec71e", + "content-hash": "4e19a2f35b34aaacc801975b784b307f", "packages": [ { "name": "nxp/math-executor", diff --git a/cooked.php b/cooked.php index 91df619..2529782 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.4 +Version: 1.9.5 Text Domain: cooked Domain Path: languages License: GPL2 @@ -30,7 +30,7 @@ require_once __DIR__ . '/vendor/autoload.php'; -define( 'COOKED_VERSION', '1.9.4' ); +define( 'COOKED_VERSION', '1.9.5' ); 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 50fd28d..ec4367a 100644 --- a/includes/class.cooked-admin-enqueues.php +++ b/includes/class.cooked-admin-enqueues.php @@ -102,7 +102,7 @@ public function admin_enqueues( $hook ) { if ($enqueue): $old_recipes = get_transient( 'cooked_classic_recipes' ); - if ( $old_recipes != 'complete' ): + if ( $old_recipes && $old_recipes !== 'complete' && is_array($old_recipes) ): $total_old_recipes = count( $old_recipes ); else: $total_old_recipes = 0; diff --git a/includes/class.cooked-admin-menus.php b/includes/class.cooked-admin-menus.php index 1461260..8d8860f 100644 --- a/includes/class.cooked-admin-menus.php +++ b/includes/class.cooked-admin-menus.php @@ -26,6 +26,8 @@ function __construct() { if (!is_admin()) { add_action( 'admin_bar_menu', [&$this, 'add_admin_bar_menu'], 100 ); } + + add_action('parent_file', [&$this, 'parent_file_filter']); } public function add_menu() { @@ -36,7 +38,7 @@ public function add_menu() { if ( isset($cooked_taxonomies_for_menu) && !empty($cooked_taxonomies_for_menu) ) { foreach ( $cooked_taxonomies_for_menu as $menu_item ) { - add_submenu_page( $menu_item['menu'], $menu_item['name'], $menu_item['name'], $menu_item['capability'], $menu_item['url'], '' ); + add_submenu_page($menu_item['menu'], $menu_item['name'], $menu_item['name'], $menu_item['capability'], $menu_item['url'], '', null ); } } @@ -65,6 +67,23 @@ public function add_admin_bar_menu() { } } + public function parent_file_filter($parent_file) { + global $submenu_file, $current_screen, $pagenow; + $post_type = 'cp_recipe'; + + if ($current_screen->post_type === $post_type && $pagenow === 'edit-tags.php') { + $_cooked_taxonomies = Cooked_Taxonomies::get(); + + if (array_key_exists($current_screen->taxonomy, $_cooked_taxonomies)) { + $submenu_file = 'edit-tags.php?taxonomy=' . $current_screen->taxonomy . '&post_type=' . $post_type; + } + + $parent_file = 'cooked_recipes_menu'; + } + + return $parent_file; + } + // Settings Panel public function cooked_settings_page() { if (!current_user_can('edit_cooked_settings')) { diff --git a/includes/class.cooked-post-types.php b/includes/class.cooked-post-types.php index b328419..a2ce90c 100644 --- a/includes/class.cooked-post-types.php +++ b/includes/class.cooked-post-types.php @@ -25,7 +25,7 @@ function __construct() { add_action( 'init', [&$this, 'init'] ); add_filter( 'admin_init', [&$this, 'init_roles'] ); add_action( 'after_setup_theme', [&$this, 'image_sizes'] ); - //add_action( 'template_redirect', array( &$this, 'redirects' ) ); + // add_action( 'template_redirect', [&$this, 'redirects'] ); add_action( 'wp_head', [&$this, 'cooked_meta_tags'], 5 ); add_action( 'manage_cp_recipe_posts_custom_column', [&$this, 'custom_columns_data'], 10, 2 ); @@ -361,6 +361,13 @@ public static function init() { } } + // Search sort pagination + add_rewrite_rule( + '^' . $base_path . 'search/([^/]*)/sort/([^/]*)/page/([^/]*)/?', + 'index.php?page_id=' . $_cooked_settings['browse_page'] . '&cooked_search_s=$matches[1]&cooked_browse_sort_by=$matches[2]&paged=$matches[3]', + 'top' + ); + // Search sort add_rewrite_rule( '^' . $base_path . 'search/([^/]*)/sort/([^/]*)/?', @@ -368,6 +375,13 @@ public static function init() { 'top' ); + // Sort Pagination + add_rewrite_rule( + '^' . $base_path . 'sort/([^/]*)/page/([^/]*)/?', + 'index.php?page_id=' . $_cooked_settings['browse_page'] . '&cooked_browse_sort_by=$matches[1]&paged=$matches[2]', + 'top' + ); + // Sort add_rewrite_rule( '^' . $base_path . 'sort/([^/]*)/?', diff --git a/includes/class.cooked-recipes.php b/includes/class.cooked-recipes.php index a1fad05..cb23a01 100644 --- a/includes/class.cooked-recipes.php +++ b/includes/class.cooked-recipes.php @@ -33,7 +33,7 @@ public function __construct() { add_filter('get_canonical_url', [&$this, 'modify_browse_page_canonical_url'], 20, 2); } - public static function get( $args = false, $single = false, $ids_only = false ) { + public static function get( $args = false, $single = false, $ids_only = false, $limit = false ) { $recipes = []; $counter = 0; @@ -62,6 +62,10 @@ public static function get( $args = false, $single = false, $ids_only = false ) $args['fields'] = 'ids'; endif; + if ( $limit ): + $args['limit'] = $limit; + endif; + // Search Query elseif ( $args && isset($args['s']) && isset($args['meta_query']) ): diff --git a/includes/class.cooked-seo.php b/includes/class.cooked-seo.php index de0fcfe..5bdfd81 100644 --- a/includes/class.cooked-seo.php +++ b/includes/class.cooked-seo.php @@ -12,10 +12,10 @@ class Cooked_SEO { - public static function json_ld( $recipe = false ){ - + public static function json_ld( $recipe = false ) { global $_cooked_settings; - if ( !in_array( 'disable_schema_output', $_cooked_settings['advanced'] ) ): + + if ( !empty($_cooked_settings['advanced']) && !in_array( 'disable_schema_output', $_cooked_settings['advanced'] ) ): $schema_values_json = wp_json_encode( self::schema_values( $recipe ) ); diff --git a/includes/class.cooked-settings.php b/includes/class.cooked-settings.php index 9eb7b3f..bf0fd70 100644 --- a/includes/class.cooked-settings.php +++ b/includes/class.cooked-settings.php @@ -114,6 +114,7 @@ private static function needs_rewrite_flush( $old_version ) { '1.9.1', // Hotfix for the permalink structure. '1.9.2', // Hotfix for the permalink structure. '1.9.4', // Hotfix for the permalink structure. + '1.9.5', // Hotfix for the permalink structure (sort & search). ]; // If old version is newer than our latest flush requirement, no flush needed diff --git a/includes/class.cooked-shortcodes.php b/includes/class.cooked-shortcodes.php index 564dfa8..64cdfa1 100644 --- a/includes/class.cooked-shortcodes.php +++ b/includes/class.cooked-shortcodes.php @@ -55,8 +55,18 @@ function __construct() { } public function preprocess_shortcode($output, $tag, $attr, $m) { + // Tags to skip + $skip_tags = [ + 'cooked-search', + 'cooked-browse', + 'cooked-timer', + 'cooked-recipe', + 'cooked-recipe-list', + 'cooked-recipe-card', + ]; + // Only process for Cooked shortcodes - if (strpos($tag, 'cooked-') === false) { + if (is_front_page() || strpos($tag, 'cooked-') === false || in_array($tag, $skip_tags)) { return $output; } @@ -66,12 +76,12 @@ public function preprocess_shortcode($output, $tag, $attr, $m) { if (empty($recipe_settings)) { // Try to get recipe settings from current post. $post_id = isset($post->ID) ? $post->ID : false; - if ($post_id && get_post_type( $post_id ) === 'cp_recipe' ) { + if ($post_id && get_post_type( $post_id ) === 'cp_recipe') { $recipe_settings = Cooked_Recipes::get($post_id, true); } else { // We are in the editor but not on a recipe post type. Maybe a single recipe template? // Uses the first recipe found in the database as a sample. - $recipe_settings = Cooked_Recipes::get( false, true ); + $recipe_settings = Cooked_Recipes::get(false, true, false, 1); } // If still empty and we have a specific recipe ID in attributes, try to get them. @@ -273,7 +283,7 @@ public function cooked_recipe_shortcode( $atts, $content = null ) { 'id' => false, ], $atts); - global $recipe_settings,$_cooked_content_unfiltered; + global $recipe_settings, $_cooked_content_unfiltered; ob_start(); diff --git a/languages/cooked.po b/languages/cooked.po index 7513705..ed8674c 100644 --- a/languages/cooked.po +++ b/languages/cooked.po @@ -94,51 +94,51 @@ msgstr "" msgid "Please confirm that you are ready to import all recipes." msgstr "" -#: includes/class.cooked-admin-menus.php:34 -#: includes/class.cooked-admin-menus.php:57 -#: includes/class.cooked-post-types.php:446 -#: includes/class.cooked-post-types.php:458 +#: includes/class.cooked-admin-menus.php:36 +#: includes/class.cooked-admin-menus.php:59 +#: includes/class.cooked-post-types.php:453 +#: includes/class.cooked-post-types.php:465 #: includes/class.cooked-users.php:125 msgid "Recipes" msgstr "" -#: includes/class.cooked-admin-menus.php:35 -#: includes/class.cooked-admin-menus.php:59 -#: includes/class.cooked-post-types.php:448 +#: includes/class.cooked-admin-menus.php:37 +#: includes/class.cooked-admin-menus.php:61 +#: includes/class.cooked-post-types.php:455 msgid "Add New" msgstr "" #. translators: referring to the bottom of the Settings page. -#: includes/class.cooked-admin-menus.php:43 -#: includes/class.cooked-admin-menus.php:63 +#: includes/class.cooked-admin-menus.php:45 +#: includes/class.cooked-admin-menus.php:65 #: includes/class.cooked-recipe-meta.php:95 -#: includes/class.cooked-shortcodes.php:138 +#: includes/class.cooked-shortcodes.php:148 #: templates/admin/welcome.php:18 msgid "Settings" msgstr "" -#: includes/class.cooked-admin-menus.php:44 +#: includes/class.cooked-admin-menus.php:46 msgid "Import" msgstr "" -#: includes/class.cooked-admin-menus.php:45 +#: includes/class.cooked-admin-menus.php:47 msgid "What's New?" msgstr "" -#: includes/class.cooked-admin-menus.php:48 +#: includes/class.cooked-admin-menus.php:50 #: templates/admin/welcome.php:35 msgid "Upgrade to Pro" msgstr "" -#: includes/class.cooked-admin-menus.php:58 -#: includes/class.cooked-post-types.php:453 +#: includes/class.cooked-admin-menus.php:60 +#: includes/class.cooked-post-types.php:460 msgid "All Recipes" msgstr "" -#: includes/class.cooked-admin-menus.php:71 -#: includes/class.cooked-admin-menus.php:80 -#: includes/class.cooked-admin-menus.php:89 -#: includes/class.cooked-admin-menus.php:98 +#: includes/class.cooked-admin-menus.php:90 +#: includes/class.cooked-admin-menus.php:99 +#: includes/class.cooked-admin-menus.php:108 +#: includes/class.cooked-admin-menus.php:117 msgid "You do not have sufficient permissions to access this page." msgstr "" @@ -147,7 +147,7 @@ msgstr "" #: includes/class.cooked-recipe-meta.php:135 #: includes/class.cooked-recipe-meta.php:221 #: includes/class.cooked-recipe-meta.php:975 -#: includes/class.cooked-recipes.php:619 +#: includes/class.cooked-recipes.php:623 #: templates/front/recipe.php:34 msgid "Ingredients" msgstr "" @@ -157,7 +157,7 @@ msgstr "" #: includes/class.cooked-recipe-meta.php:135 #: includes/class.cooked-recipe-meta.php:227 #: includes/class.cooked-recipe-meta.php:1006 -#: includes/class.cooked-recipes.php:623 +#: includes/class.cooked-recipes.php:627 #: templates/front/recipe.php:35 msgid "Directions" msgstr "" @@ -195,7 +195,7 @@ msgstr "" #: includes/class.cooked-functions.php:125 #: includes/class.cooked-recipe-meta.php:1166 -#: includes/class.cooked-settings.php:198 +#: includes/class.cooked-settings.php:200 msgid "Excerpt" msgstr "" @@ -205,9 +205,9 @@ 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:199 -#: includes/class.cooked-shortcodes.php:744 +#: includes/class.cooked-recipes.php:630 +#: includes/class.cooked-settings.php:201 +#: includes/class.cooked-shortcodes.php:754 msgid "Notes" msgstr "" @@ -289,7 +289,7 @@ msgid "Begin Import" msgstr "" #: includes/class.cooked-import.php:119 -#: includes/class.cooked-settings.php:554 +#: includes/class.cooked-settings.php:556 msgid "reload" msgstr "" @@ -572,7 +572,7 @@ msgid "cans" msgstr "" #: includes/class.cooked-measurements.php:195 -#: includes/class.cooked-settings.php:203 +#: includes/class.cooked-settings.php:205 msgid "Servings" msgstr "" @@ -835,47 +835,47 @@ msgstr "" msgid "Photo" msgstr "" -#: includes/class.cooked-post-types.php:428 +#: includes/class.cooked-post-types.php:435 msgid "Recipe Archive" msgstr "" -#: includes/class.cooked-post-types.php:447 +#: includes/class.cooked-post-types.php:454 msgid "Recipe" msgstr "" -#: includes/class.cooked-post-types.php:449 +#: includes/class.cooked-post-types.php:456 msgid "Add New Recipe" msgstr "" -#: includes/class.cooked-post-types.php:450 +#: includes/class.cooked-post-types.php:457 msgid "New Recipe" msgstr "" -#: includes/class.cooked-post-types.php:451 +#: includes/class.cooked-post-types.php:458 msgid "Edit Recipe" msgstr "" -#: includes/class.cooked-post-types.php:452 +#: includes/class.cooked-post-types.php:459 msgid "View Recipe" msgstr "" -#: includes/class.cooked-post-types.php:454 +#: includes/class.cooked-post-types.php:461 msgid "Search Recipes" msgstr "" -#: includes/class.cooked-post-types.php:455 +#: includes/class.cooked-post-types.php:462 msgid "No recipes found." msgstr "" -#: includes/class.cooked-post-types.php:456 +#: includes/class.cooked-post-types.php:463 msgid "No recipes found in trash." msgstr "" -#: includes/class.cooked-post-types.php:484 +#: includes/class.cooked-post-types.php:491 msgid "Recipe title ..." msgstr "" -#: includes/class.cooked-post-types.php:502 +#: includes/class.cooked-post-types.php:509 msgid "Cooked Browse Recipes Page" msgstr "" @@ -971,15 +971,15 @@ 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:197 +#: includes/class.cooked-settings.php:199 msgid "Difficulty Level" msgstr "" #: includes/class.cooked-recipe-meta.php:389 #: includes/class.cooked-recipe-meta.php:949 -#: includes/class.cooked-settings.php:200 -#: includes/class.cooked-shortcodes.php:433 -#: includes/class.cooked-shortcodes.php:641 +#: includes/class.cooked-settings.php:202 +#: includes/class.cooked-shortcodes.php:443 +#: includes/class.cooked-shortcodes.php:651 msgid "Prep Time" msgstr "" @@ -991,18 +991,18 @@ msgstr "" #: includes/class.cooked-recipe-meta.php:394 #: includes/class.cooked-recipe-meta.php:950 -#: includes/class.cooked-settings.php:201 -#: includes/class.cooked-shortcodes.php:434 -#: includes/class.cooked-shortcodes.php:650 +#: includes/class.cooked-settings.php:203 +#: includes/class.cooked-shortcodes.php:444 +#: includes/class.cooked-shortcodes.php:660 msgid "Cook Time" msgstr "" #: includes/class.cooked-recipe-meta.php:399 #: includes/class.cooked-recipe-meta.php:951 -#: includes/class.cooked-settings.php:202 -#: includes/class.cooked-shortcodes.php:435 -#: includes/class.cooked-shortcodes.php:661 -#: includes/class.cooked-shortcodes.php:668 +#: includes/class.cooked-settings.php:204 +#: includes/class.cooked-shortcodes.php:445 +#: includes/class.cooked-shortcodes.php:671 +#: includes/class.cooked-shortcodes.php:678 msgid "Total Time" msgstr "" @@ -1057,27 +1057,27 @@ msgid "Nutrition Information" msgstr "" #: includes/class.cooked-recipe-meta.php:751 -#: includes/class.cooked-shortcodes.php:1029 +#: includes/class.cooked-shortcodes.php:1039 msgid "Nutrition Facts" msgstr "" #: includes/class.cooked-recipe-meta.php:769 -#: includes/class.cooked-shortcodes.php:997 +#: includes/class.cooked-shortcodes.php:1007 msgid "Amount per serving" msgstr "" #: includes/class.cooked-recipe-meta.php:779 -#: includes/class.cooked-shortcodes.php:1007 +#: includes/class.cooked-shortcodes.php:1017 msgid "% Daily Value *" msgstr "" #: includes/class.cooked-recipe-meta.php:798 -#: includes/class.cooked-shortcodes.php:939 +#: includes/class.cooked-shortcodes.php:949 msgid "Includes" msgstr "" #: includes/class.cooked-recipe-meta.php:830 -#: includes/class.cooked-shortcodes.php:1033 +#: includes/class.cooked-shortcodes.php:1043 msgid "The % Daily Value (DV) tells you how much a nutrient in a serving of food contributes to a daily diet. 2,000 calories a day is used for general nutrition advice." msgstr "" @@ -1139,15 +1139,15 @@ msgid "Available Variables" msgstr "" #: includes/class.cooked-recipe-meta.php:948 -#: includes/class.cooked-settings.php:195 -#: includes/class.cooked-shortcodes.php:430 -#: includes/class.cooked-shortcodes.php:595 +#: includes/class.cooked-settings.php:197 +#: includes/class.cooked-shortcodes.php:440 +#: includes/class.cooked-shortcodes.php:605 msgid "Author" msgstr "" #: includes/class.cooked-recipe-meta.php:952 -#: includes/class.cooked-shortcodes.php:431 -#: includes/class.cooked-shortcodes.php:606 +#: includes/class.cooked-shortcodes.php:441 +#: includes/class.cooked-shortcodes.php:616 msgid "Difficulty" msgstr "" @@ -1156,9 +1156,9 @@ msgid "Servings Switcher" msgstr "" #: includes/class.cooked-recipe-meta.php:954 -#: includes/class.cooked-settings.php:196 -#: includes/class.cooked-shortcodes.php:688 -#: includes/class.cooked-shortcodes.php:691 +#: includes/class.cooked-settings.php:198 +#: includes/class.cooked-shortcodes.php:698 +#: includes/class.cooked-shortcodes.php:701 #: includes/class.cooked-taxonomies.php:39 msgid "Category" msgstr "" @@ -1320,134 +1320,134 @@ msgstr "" #. translators: stating the recipe author with a "By" in front of it. (ex: "By John Smith") #. translators: referring to the author (ex: By John Smith) -#: includes/class.cooked-recipes.php:258 -#: includes/class.cooked-recipes.php:312 +#: includes/class.cooked-recipes.php:262 +#: includes/class.cooked-recipes.php:316 #: templates/front/recipe-single.php:47 msgid "By %s" msgstr "" #. translators: For showing "All" of a taxonomy (ex: "All Burgers") -#: includes/class.cooked-recipes.php:374 +#: includes/class.cooked-recipes.php:378 msgid "All %s" msgstr "" -#: includes/class.cooked-recipes.php:634 +#: includes/class.cooked-recipes.php:638 msgid "Beginner" msgstr "" -#: includes/class.cooked-recipes.php:635 +#: includes/class.cooked-recipes.php:639 msgid "Intermediate" msgstr "" -#: includes/class.cooked-recipes.php:636 +#: includes/class.cooked-recipes.php:640 msgid "Advanced" msgstr "" -#: includes/class.cooked-recipes.php:662 +#: includes/class.cooked-recipes.php:666 msgid "Cooked Gallery" msgstr "" -#: includes/class.cooked-recipes.php:666 +#: includes/class.cooked-recipes.php:670 msgid "Envira Gallery" msgstr "" -#: includes/class.cooked-recipes.php:670 +#: includes/class.cooked-recipes.php:674 msgid "Soliloquy Slider" msgstr "" -#: includes/class.cooked-recipes.php:674 +#: includes/class.cooked-recipes.php:678 msgid "Slider Revolution" msgstr "" #. translators: singular and plural quarter "serving" size -#: includes/class.cooked-recipes.php:749 +#: includes/class.cooked-recipes.php:753 msgid "Quarter (%s Serving)" msgid_plural "Quarter (%s Servings)" msgstr[0] "" msgstr[1] "" #. translators: singular and plural quarter "serving" size -#: includes/class.cooked-recipes.php:752 +#: includes/class.cooked-recipes.php:756 msgid "Half (%s Serving)" msgid_plural "Half (%s Servings)" msgstr[0] "" msgstr[1] "" #. translators: singular and plural quarter "serving" size -#: includes/class.cooked-recipes.php:755 +#: includes/class.cooked-recipes.php:759 msgid "Default (%s Serving)" msgid_plural "Default (%s Servings)" msgstr[0] "" msgstr[1] "" #. translators: singular and plural quarter "serving" size -#: includes/class.cooked-recipes.php:758 +#: includes/class.cooked-recipes.php:762 msgid "Double (%s Servings)" msgstr "" #. translators: singular and plural quarter "serving" size -#: includes/class.cooked-recipes.php:761 +#: includes/class.cooked-recipes.php:765 msgid "Triple (%s Servings)" msgstr "" -#: includes/class.cooked-recipes.php:775 -#: includes/class.cooked-shortcodes.php:432 +#: includes/class.cooked-recipes.php:779 +#: includes/class.cooked-shortcodes.php:442 msgid "Yields" msgstr "" #. translators: singular and plural "serving" sizes -#: includes/class.cooked-recipes.php:779 -#: includes/class.cooked-recipes.php:789 +#: includes/class.cooked-recipes.php:783 +#: includes/class.cooked-recipes.php:793 msgid "%s Serving" msgid_plural "%s Servings" msgstr[0] "" msgstr[1] "" #. translators: singular and plural "steps" -#: includes/class.cooked-recipes.php:889 +#: includes/class.cooked-recipes.php:893 #: includes/class.cooked-seo.php:88 msgid "Step %d" msgstr "" -#: includes/class.cooked-recipes.php:944 +#: includes/class.cooked-recipes.php:948 msgid "Browse" msgstr "" -#: includes/class.cooked-recipes.php:961 -#: includes/class.cooked-settings.php:136 +#: includes/class.cooked-recipes.php:965 +#: includes/class.cooked-settings.php:138 msgid "No categories" msgstr "" -#: includes/class.cooked-recipes.php:964 -#: includes/class.cooked-settings.php:183 +#: includes/class.cooked-recipes.php:968 +#: includes/class.cooked-settings.php:185 #: includes/class.cooked-taxonomies.php:38 #: includes/class.cooked-taxonomies.php:48 msgid "Categories" msgstr "" -#: includes/class.cooked-recipes.php:966 +#: includes/class.cooked-recipes.php:970 #: includes/class.cooked-taxonomies.php:41 #: includes/widgets/recipe-categories.php:48 msgid "All Categories" msgstr "" -#: includes/class.cooked-recipes.php:1034 +#: includes/class.cooked-recipes.php:1038 msgid "Find a recipe..." msgstr "" -#: includes/class.cooked-recipes.php:1049 +#: includes/class.cooked-recipes.php:1053 msgid "Newest first" msgstr "" -#: includes/class.cooked-recipes.php:1053 +#: includes/class.cooked-recipes.php:1057 msgid "Oldest first" msgstr "" -#: includes/class.cooked-recipes.php:1057 +#: includes/class.cooked-recipes.php:1061 msgid "Alphabetical (A-Z)" msgstr "" -#: includes/class.cooked-recipes.php:1061 +#: includes/class.cooked-recipes.php:1065 msgid "Alphabetical (Z-A)" msgstr "" @@ -1459,318 +1459,310 @@ msgstr "" msgid "Cooked settings has been updated!" msgstr "" -#: includes/class.cooked-settings.php:135 -msgid "Choose a page..." -msgstr "" - -#: includes/class.cooked-settings.php:135 -msgid "No pages" -msgstr "" - -#: includes/class.cooked-settings.php:136 +#: includes/class.cooked-settings.php:138 msgid "No default" msgstr "" -#: includes/class.cooked-settings.php:156 +#: includes/class.cooked-settings.php:158 msgid "General" msgstr "" -#: includes/class.cooked-settings.php:160 +#: includes/class.cooked-settings.php:162 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:162 +#: includes/class.cooked-settings.php:164 msgid "Create a page with the %s shortcode on it, then choose it from this dropdown." msgstr "" -#: includes/class.cooked-settings.php:168 +#: includes/class.cooked-settings.php:170 msgid "Recipes Per Page" msgstr "" #. translators: a description on how to choose the default number of recipes per page. -#: includes/class.cooked-settings.php:170 +#: includes/class.cooked-settings.php:172 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:170 +#: includes/class.cooked-settings.php:172 msgid "Settings > Reading" msgstr "" -#: includes/class.cooked-settings.php:176 +#: includes/class.cooked-settings.php:178 msgid "Recipe Taxonomies" msgstr "" -#: includes/class.cooked-settings.php:177 +#: includes/class.cooked-settings.php:179 msgid "Choose which taxonomies you want to enable for your recipes." msgstr "" -#: includes/class.cooked-settings.php:188 +#: includes/class.cooked-settings.php:190 msgid "Global Recipe Toggles" msgstr "" -#: includes/class.cooked-settings.php:189 +#: includes/class.cooked-settings.php:191 msgid "You can quickly hide or show different recipe elements (site-wide) with these checkboxes." msgstr "" -#: includes/class.cooked-settings.php:208 +#: includes/class.cooked-settings.php:210 msgid "Carbs Format" msgstr "" -#: includes/class.cooked-settings.php:209 +#: includes/class.cooked-settings.php:211 msgid "You can display carbs as \"Total\" or \"Net\"." msgstr "" -#: includes/class.cooked-settings.php:215 +#: includes/class.cooked-settings.php:217 msgid "Total Carbs" msgstr "" -#: includes/class.cooked-settings.php:216 +#: includes/class.cooked-settings.php:218 msgid "Net Carbs" msgstr "" -#: includes/class.cooked-settings.php:221 +#: includes/class.cooked-settings.php:223 msgid "Author Name Format" msgstr "" -#: includes/class.cooked-settings.php:222 +#: includes/class.cooked-settings.php:224 msgid "You can show the full author's name or just a part of it." msgstr "" -#: includes/class.cooked-settings.php:228 +#: includes/class.cooked-settings.php:230 msgid "Full name" msgstr "" -#: includes/class.cooked-settings.php:229 +#: includes/class.cooked-settings.php:231 msgid "Full first name w/last name initial" msgstr "" -#: includes/class.cooked-settings.php:230 +#: includes/class.cooked-settings.php:232 msgid "First name initial w/full last name" msgstr "" -#: includes/class.cooked-settings.php:231 +#: includes/class.cooked-settings.php:233 msgid "First name only" msgstr "" -#: includes/class.cooked-settings.php:236 +#: includes/class.cooked-settings.php:238 msgid "Author Links" msgstr "" -#: includes/class.cooked-settings.php:237 +#: includes/class.cooked-settings.php:239 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:244 +#: includes/class.cooked-settings.php:246 msgid "Disable Author Links" msgstr "" -#: includes/class.cooked-settings.php:249 +#: includes/class.cooked-settings.php:251 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:251 +#: includes/class.cooked-settings.php:253 msgid "Optionally set the default recipe category for your %s shortcode display." msgstr "" -#: includes/class.cooked-settings.php:257 +#: includes/class.cooked-settings.php:259 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:259 +#: includes/class.cooked-settings.php:261 msgid "Set the default sort order for your %s shortcode display." msgstr "" -#: includes/class.cooked-settings.php:265 +#: includes/class.cooked-settings.php:267 msgid "Newest First" msgstr "" -#: includes/class.cooked-settings.php:266 +#: includes/class.cooked-settings.php:268 msgid "Oldest First" msgstr "" -#: includes/class.cooked-settings.php:267 +#: includes/class.cooked-settings.php:269 msgid "Alphabetical" msgstr "" -#: includes/class.cooked-settings.php:268 +#: includes/class.cooked-settings.php:270 msgid "Alphabetical (reversed)" msgstr "" -#: includes/class.cooked-settings.php:273 +#: includes/class.cooked-settings.php:275 msgid "WP Editor Roles" msgstr "" -#: includes/class.cooked-settings.php:274 +#: includes/class.cooked-settings.php:276 msgid "Choose which user roles can use the WP Editor for the Excerpt, Directions & Notes fields." msgstr "" -#: includes/class.cooked-settings.php:280 +#: includes/class.cooked-settings.php:282 msgid "Advanced Settings" msgstr "" #. translators: an option to only show recipes with the [cooked-recipe] shortcode. -#: includes/class.cooked-settings.php:290 +#: includes/class.cooked-settings.php:292 msgid "Disable Public Recipes" msgstr "" #. translators: an option to only show recipes with the [cooked-recipe] shortcode. -#: includes/class.cooked-settings.php:290 +#: includes/class.cooked-settings.php:292 msgid "Only show recipes using the %s shortcode." msgstr "" #. translators: an option to disable "meta" tags. -#: includes/class.cooked-settings.php:292 +#: includes/class.cooked-settings.php:294 msgid "Disable %s Tags" msgstr "" #. translators: an option to disable "meta" tags. -#: includes/class.cooked-settings.php:292 +#: includes/class.cooked-settings.php:294 msgid "Prevents duplicates when tags already exist." msgstr "" -#: includes/class.cooked-settings.php:293 +#: includes/class.cooked-settings.php:295 msgid "Disable \"Servings Switcher\"" msgstr "" -#: includes/class.cooked-settings.php:293 +#: includes/class.cooked-settings.php:295 msgid "Removes the servings dropdown on recipes." msgstr "" -#: includes/class.cooked-settings.php:294 +#: includes/class.cooked-settings.php:296 msgid "Disable Recipe Schema Output" msgstr "" -#: includes/class.cooked-settings.php:294 +#: includes/class.cooked-settings.php:296 msgid "You should only do this if you're using something else to output schema information." msgstr "" -#: includes/class.cooked-settings.php:295 +#: includes/class.cooked-settings.php:297 msgid "Disable Recipe Archive Page" msgstr "" -#: includes/class.cooked-settings.php:295 +#: includes/class.cooked-settings.php:297 msgid "Prevents the recipe archive from being displayed." msgstr "" -#: includes/class.cooked-settings.php:302 +#: includes/class.cooked-settings.php:304 msgid "Design" msgstr "" -#: includes/class.cooked-settings.php:306 +#: includes/class.cooked-settings.php:308 msgid "Dark Mode" msgstr "" -#: includes/class.cooked-settings.php:307 +#: includes/class.cooked-settings.php:309 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:313 +#: includes/class.cooked-settings.php:315 msgid "Enable \"Dark Mode\"" msgstr "" -#: includes/class.cooked-settings.php:318 +#: includes/class.cooked-settings.php:320 msgid "Author Images" msgstr "" -#: includes/class.cooked-settings.php:319 +#: includes/class.cooked-settings.php:321 msgid "If you do not want to display the author images (avatars), you can disable them here." msgstr "" -#: includes/class.cooked-settings.php:326 +#: includes/class.cooked-settings.php:328 msgid "Hide Author Images" msgstr "" -#: includes/class.cooked-settings.php:331 +#: includes/class.cooked-settings.php:333 msgid "Main Color" msgstr "" -#: includes/class.cooked-settings.php:332 +#: includes/class.cooked-settings.php:334 msgid "Used on buttons, cooking timer, etc." msgstr "" -#: includes/class.cooked-settings.php:338 +#: includes/class.cooked-settings.php:340 msgid "Main Color (on hover)" msgstr "" -#: includes/class.cooked-settings.php:339 +#: includes/class.cooked-settings.php:341 msgid "Used when hovering over buttons." msgstr "" -#: includes/class.cooked-settings.php:345 +#: includes/class.cooked-settings.php:347 msgid "First Responsive Breakpoint" msgstr "" -#: includes/class.cooked-settings.php:346 +#: includes/class.cooked-settings.php:348 msgid "Set the first responsive breakpoint. Best for large tablets." msgstr "" -#: includes/class.cooked-settings.php:352 +#: includes/class.cooked-settings.php:354 msgid "Second Responsive Breakpoint" msgstr "" -#: includes/class.cooked-settings.php:353 +#: includes/class.cooked-settings.php:355 msgid "Set the second responsive breakpoint. Best for small tablets." msgstr "" -#: includes/class.cooked-settings.php:359 +#: includes/class.cooked-settings.php:361 msgid "Third Responsive Breakpoint" msgstr "" -#: includes/class.cooked-settings.php:360 +#: includes/class.cooked-settings.php:362 msgid "Set the third responsive breakpoint. Best for phones and other small devices." msgstr "" -#: includes/class.cooked-settings.php:368 +#: includes/class.cooked-settings.php:370 msgid "Permalinks" msgstr "" -#: includes/class.cooked-settings.php:372 +#: includes/class.cooked-settings.php:374 msgid "Recipe Permalink" msgstr "" -#: includes/class.cooked-settings.php:375 +#: includes/class.cooked-settings.php:377 msgid "recipe-name" msgstr "" -#: includes/class.cooked-settings.php:379 +#: includes/class.cooked-settings.php:381 msgid "Recipe Author Permalink" msgstr "" -#: includes/class.cooked-settings.php:382 +#: includes/class.cooked-settings.php:384 msgid "author-name" msgstr "" -#: includes/class.cooked-settings.php:386 +#: includes/class.cooked-settings.php:388 msgid "Recipe Category Permalink" msgstr "" -#: includes/class.cooked-settings.php:389 +#: includes/class.cooked-settings.php:391 msgid "recipe-category-name" msgstr "" #. translators: posts_per_page default -#: includes/class.cooked-settings.php:400 +#: includes/class.cooked-settings.php:402 msgid "WordPress Default %s" msgstr "" -#: includes/class.cooked-settings.php:405 +#: includes/class.cooked-settings.php:407 msgid "Show All (no pagination)" msgstr "" -#: includes/class.cooked-settings.php:549 +#: includes/class.cooked-settings.php:551 msgid "Begin Migration" msgstr "" #. translators: referring to the bottom of the Settings page. -#: includes/class.cooked-shortcodes.php:138 +#: includes/class.cooked-shortcodes.php:148 msgid "Public recipes are currently disabled. You can change this at the bottom of the %s page." msgstr "" -#: includes/class.cooked-shortcodes.php:286 +#: includes/class.cooked-shortcodes.php:296 msgid "(recipe not found or in draft status)" msgstr "" @@ -2060,3 +2052,11 @@ msgstr "" #: templates/front/recipe-list.php:38 msgid "View all recipes" msgstr "" + +#: includes/class.cooked-settings.php:137 +msgid "Choose a page..." +msgstr "" + +#: includes/class.cooked-settings.php:137 +msgid "No pages" +msgstr "" diff --git a/languages/cooked.pot b/languages/cooked.pot index f7ab9e2..068b118 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.4\n" +"Project-Id-Version: Cooked - Recipe Management 1.9.5\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: 2025-01-02T11:09:42-05:00\n" +"POT-Creation-Date: 2025-01-06T20:04:14-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" @@ -97,51 +97,51 @@ msgstr "" msgid "Please confirm that you are ready to import all recipes." msgstr "" -#: includes/class.cooked-admin-menus.php:34 -#: includes/class.cooked-admin-menus.php:57 -#: includes/class.cooked-post-types.php:446 -#: includes/class.cooked-post-types.php:458 +#: includes/class.cooked-admin-menus.php:36 +#: includes/class.cooked-admin-menus.php:59 +#: includes/class.cooked-post-types.php:453 +#: includes/class.cooked-post-types.php:465 #: includes/class.cooked-users.php:125 msgid "Recipes" msgstr "" -#: includes/class.cooked-admin-menus.php:35 -#: includes/class.cooked-admin-menus.php:59 -#: includes/class.cooked-post-types.php:448 +#: includes/class.cooked-admin-menus.php:37 +#: includes/class.cooked-admin-menus.php:61 +#: includes/class.cooked-post-types.php:455 msgid "Add New" msgstr "" #. translators: referring to the bottom of the Settings page. -#: includes/class.cooked-admin-menus.php:43 -#: includes/class.cooked-admin-menus.php:63 +#: includes/class.cooked-admin-menus.php:45 +#: includes/class.cooked-admin-menus.php:65 #: includes/class.cooked-recipe-meta.php:95 -#: includes/class.cooked-shortcodes.php:138 +#: includes/class.cooked-shortcodes.php:148 #: templates/admin/welcome.php:18 msgid "Settings" msgstr "" -#: includes/class.cooked-admin-menus.php:44 +#: includes/class.cooked-admin-menus.php:46 msgid "Import" msgstr "" -#: includes/class.cooked-admin-menus.php:45 +#: includes/class.cooked-admin-menus.php:47 msgid "What's New?" msgstr "" -#: includes/class.cooked-admin-menus.php:48 +#: includes/class.cooked-admin-menus.php:50 #: templates/admin/welcome.php:35 msgid "Upgrade to Pro" msgstr "" -#: includes/class.cooked-admin-menus.php:58 -#: includes/class.cooked-post-types.php:453 +#: includes/class.cooked-admin-menus.php:60 +#: includes/class.cooked-post-types.php:460 msgid "All Recipes" msgstr "" -#: includes/class.cooked-admin-menus.php:71 -#: includes/class.cooked-admin-menus.php:80 -#: includes/class.cooked-admin-menus.php:89 -#: includes/class.cooked-admin-menus.php:98 +#: includes/class.cooked-admin-menus.php:90 +#: includes/class.cooked-admin-menus.php:99 +#: includes/class.cooked-admin-menus.php:108 +#: includes/class.cooked-admin-menus.php:117 msgid "You do not have sufficient permissions to access this page." msgstr "" @@ -150,7 +150,7 @@ msgstr "" #: includes/class.cooked-recipe-meta.php:135 #: includes/class.cooked-recipe-meta.php:221 #: includes/class.cooked-recipe-meta.php:975 -#: includes/class.cooked-recipes.php:619 +#: includes/class.cooked-recipes.php:623 #: templates/front/recipe.php:34 msgid "Ingredients" msgstr "" @@ -160,7 +160,7 @@ msgstr "" #: includes/class.cooked-recipe-meta.php:135 #: includes/class.cooked-recipe-meta.php:227 #: includes/class.cooked-recipe-meta.php:1006 -#: includes/class.cooked-recipes.php:623 +#: includes/class.cooked-recipes.php:627 #: templates/front/recipe.php:35 msgid "Directions" msgstr "" @@ -198,7 +198,7 @@ msgstr "" #: includes/class.cooked-functions.php:125 #: includes/class.cooked-recipe-meta.php:1166 -#: includes/class.cooked-settings.php:198 +#: includes/class.cooked-settings.php:200 msgid "Excerpt" msgstr "" @@ -208,9 +208,9 @@ 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:199 -#: includes/class.cooked-shortcodes.php:744 +#: includes/class.cooked-recipes.php:630 +#: includes/class.cooked-settings.php:201 +#: includes/class.cooked-shortcodes.php:754 msgid "Notes" msgstr "" @@ -292,7 +292,7 @@ msgid "Begin Import" msgstr "" #: includes/class.cooked-import.php:119 -#: includes/class.cooked-settings.php:554 +#: includes/class.cooked-settings.php:556 msgid "reload" msgstr "" @@ -575,7 +575,7 @@ msgid "cans" msgstr "" #: includes/class.cooked-measurements.php:195 -#: includes/class.cooked-settings.php:203 +#: includes/class.cooked-settings.php:205 msgid "Servings" msgstr "" @@ -838,47 +838,47 @@ msgstr "" msgid "Photo" msgstr "" -#: includes/class.cooked-post-types.php:428 +#: includes/class.cooked-post-types.php:435 msgid "Recipe Archive" msgstr "" -#: includes/class.cooked-post-types.php:447 +#: includes/class.cooked-post-types.php:454 msgid "Recipe" msgstr "" -#: includes/class.cooked-post-types.php:449 +#: includes/class.cooked-post-types.php:456 msgid "Add New Recipe" msgstr "" -#: includes/class.cooked-post-types.php:450 +#: includes/class.cooked-post-types.php:457 msgid "New Recipe" msgstr "" -#: includes/class.cooked-post-types.php:451 +#: includes/class.cooked-post-types.php:458 msgid "Edit Recipe" msgstr "" -#: includes/class.cooked-post-types.php:452 +#: includes/class.cooked-post-types.php:459 msgid "View Recipe" msgstr "" -#: includes/class.cooked-post-types.php:454 +#: includes/class.cooked-post-types.php:461 msgid "Search Recipes" msgstr "" -#: includes/class.cooked-post-types.php:455 +#: includes/class.cooked-post-types.php:462 msgid "No recipes found." msgstr "" -#: includes/class.cooked-post-types.php:456 +#: includes/class.cooked-post-types.php:463 msgid "No recipes found in trash." msgstr "" -#: includes/class.cooked-post-types.php:484 +#: includes/class.cooked-post-types.php:491 msgid "Recipe title ..." msgstr "" -#: includes/class.cooked-post-types.php:502 +#: includes/class.cooked-post-types.php:509 msgid "Cooked Browse Recipes Page" msgstr "" @@ -974,15 +974,15 @@ 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:197 +#: includes/class.cooked-settings.php:199 msgid "Difficulty Level" msgstr "" #: includes/class.cooked-recipe-meta.php:389 #: includes/class.cooked-recipe-meta.php:949 -#: includes/class.cooked-settings.php:200 -#: includes/class.cooked-shortcodes.php:433 -#: includes/class.cooked-shortcodes.php:641 +#: includes/class.cooked-settings.php:202 +#: includes/class.cooked-shortcodes.php:443 +#: includes/class.cooked-shortcodes.php:651 msgid "Prep Time" msgstr "" @@ -994,18 +994,18 @@ msgstr "" #: includes/class.cooked-recipe-meta.php:394 #: includes/class.cooked-recipe-meta.php:950 -#: includes/class.cooked-settings.php:201 -#: includes/class.cooked-shortcodes.php:434 -#: includes/class.cooked-shortcodes.php:650 +#: includes/class.cooked-settings.php:203 +#: includes/class.cooked-shortcodes.php:444 +#: includes/class.cooked-shortcodes.php:660 msgid "Cook Time" msgstr "" #: includes/class.cooked-recipe-meta.php:399 #: includes/class.cooked-recipe-meta.php:951 -#: includes/class.cooked-settings.php:202 -#: includes/class.cooked-shortcodes.php:435 -#: includes/class.cooked-shortcodes.php:661 -#: includes/class.cooked-shortcodes.php:668 +#: includes/class.cooked-settings.php:204 +#: includes/class.cooked-shortcodes.php:445 +#: includes/class.cooked-shortcodes.php:671 +#: includes/class.cooked-shortcodes.php:678 msgid "Total Time" msgstr "" @@ -1060,27 +1060,27 @@ msgid "Nutrition Information" msgstr "" #: includes/class.cooked-recipe-meta.php:751 -#: includes/class.cooked-shortcodes.php:1029 +#: includes/class.cooked-shortcodes.php:1039 msgid "Nutrition Facts" msgstr "" #: includes/class.cooked-recipe-meta.php:769 -#: includes/class.cooked-shortcodes.php:997 +#: includes/class.cooked-shortcodes.php:1007 msgid "Amount per serving" msgstr "" #: includes/class.cooked-recipe-meta.php:779 -#: includes/class.cooked-shortcodes.php:1007 +#: includes/class.cooked-shortcodes.php:1017 msgid "% Daily Value *" msgstr "" #: includes/class.cooked-recipe-meta.php:798 -#: includes/class.cooked-shortcodes.php:939 +#: includes/class.cooked-shortcodes.php:949 msgid "Includes" msgstr "" #: includes/class.cooked-recipe-meta.php:830 -#: includes/class.cooked-shortcodes.php:1033 +#: includes/class.cooked-shortcodes.php:1043 msgid "The % Daily Value (DV) tells you how much a nutrient in a serving of food contributes to a daily diet. 2,000 calories a day is used for general nutrition advice." msgstr "" @@ -1142,15 +1142,15 @@ msgid "Available Variables" msgstr "" #: includes/class.cooked-recipe-meta.php:948 -#: includes/class.cooked-settings.php:195 -#: includes/class.cooked-shortcodes.php:430 -#: includes/class.cooked-shortcodes.php:595 +#: includes/class.cooked-settings.php:197 +#: includes/class.cooked-shortcodes.php:440 +#: includes/class.cooked-shortcodes.php:605 msgid "Author" msgstr "" #: includes/class.cooked-recipe-meta.php:952 -#: includes/class.cooked-shortcodes.php:431 -#: includes/class.cooked-shortcodes.php:606 +#: includes/class.cooked-shortcodes.php:441 +#: includes/class.cooked-shortcodes.php:616 msgid "Difficulty" msgstr "" @@ -1159,9 +1159,9 @@ msgid "Servings Switcher" msgstr "" #: includes/class.cooked-recipe-meta.php:954 -#: includes/class.cooked-settings.php:196 -#: includes/class.cooked-shortcodes.php:688 -#: includes/class.cooked-shortcodes.php:691 +#: includes/class.cooked-settings.php:198 +#: includes/class.cooked-shortcodes.php:698 +#: includes/class.cooked-shortcodes.php:701 #: includes/class.cooked-taxonomies.php:39 msgid "Category" msgstr "" @@ -1323,134 +1323,134 @@ msgstr "" #. translators: stating the recipe author with a "By" in front of it. (ex: "By John Smith") #. translators: referring to the author (ex: By John Smith) -#: includes/class.cooked-recipes.php:258 -#: includes/class.cooked-recipes.php:312 +#: includes/class.cooked-recipes.php:262 +#: includes/class.cooked-recipes.php:316 #: templates/front/recipe-single.php:47 msgid "By %s" msgstr "" #. translators: For showing "All" of a taxonomy (ex: "All Burgers") -#: includes/class.cooked-recipes.php:374 +#: includes/class.cooked-recipes.php:378 msgid "All %s" msgstr "" -#: includes/class.cooked-recipes.php:634 +#: includes/class.cooked-recipes.php:638 msgid "Beginner" msgstr "" -#: includes/class.cooked-recipes.php:635 +#: includes/class.cooked-recipes.php:639 msgid "Intermediate" msgstr "" -#: includes/class.cooked-recipes.php:636 +#: includes/class.cooked-recipes.php:640 msgid "Advanced" msgstr "" -#: includes/class.cooked-recipes.php:662 +#: includes/class.cooked-recipes.php:666 msgid "Cooked Gallery" msgstr "" -#: includes/class.cooked-recipes.php:666 +#: includes/class.cooked-recipes.php:670 msgid "Envira Gallery" msgstr "" -#: includes/class.cooked-recipes.php:670 +#: includes/class.cooked-recipes.php:674 msgid "Soliloquy Slider" msgstr "" -#: includes/class.cooked-recipes.php:674 +#: includes/class.cooked-recipes.php:678 msgid "Slider Revolution" msgstr "" #. translators: singular and plural quarter "serving" size -#: includes/class.cooked-recipes.php:749 +#: includes/class.cooked-recipes.php:753 msgid "Quarter (%s Serving)" msgid_plural "Quarter (%s Servings)" msgstr[0] "" msgstr[1] "" #. translators: singular and plural quarter "serving" size -#: includes/class.cooked-recipes.php:752 +#: includes/class.cooked-recipes.php:756 msgid "Half (%s Serving)" msgid_plural "Half (%s Servings)" msgstr[0] "" msgstr[1] "" #. translators: singular and plural quarter "serving" size -#: includes/class.cooked-recipes.php:755 +#: includes/class.cooked-recipes.php:759 msgid "Default (%s Serving)" msgid_plural "Default (%s Servings)" msgstr[0] "" msgstr[1] "" #. translators: singular and plural quarter "serving" size -#: includes/class.cooked-recipes.php:758 +#: includes/class.cooked-recipes.php:762 msgid "Double (%s Servings)" msgstr "" #. translators: singular and plural quarter "serving" size -#: includes/class.cooked-recipes.php:761 +#: includes/class.cooked-recipes.php:765 msgid "Triple (%s Servings)" msgstr "" -#: includes/class.cooked-recipes.php:775 -#: includes/class.cooked-shortcodes.php:432 +#: includes/class.cooked-recipes.php:779 +#: includes/class.cooked-shortcodes.php:442 msgid "Yields" msgstr "" #. translators: singular and plural "serving" sizes -#: includes/class.cooked-recipes.php:779 -#: includes/class.cooked-recipes.php:789 +#: includes/class.cooked-recipes.php:783 +#: includes/class.cooked-recipes.php:793 msgid "%s Serving" msgid_plural "%s Servings" msgstr[0] "" msgstr[1] "" #. translators: singular and plural "steps" -#: includes/class.cooked-recipes.php:889 +#: includes/class.cooked-recipes.php:893 #: includes/class.cooked-seo.php:88 msgid "Step %d" msgstr "" -#: includes/class.cooked-recipes.php:944 +#: includes/class.cooked-recipes.php:948 msgid "Browse" msgstr "" -#: includes/class.cooked-recipes.php:961 -#: includes/class.cooked-settings.php:136 +#: includes/class.cooked-recipes.php:965 +#: includes/class.cooked-settings.php:138 msgid "No categories" msgstr "" -#: includes/class.cooked-recipes.php:964 -#: includes/class.cooked-settings.php:183 +#: includes/class.cooked-recipes.php:968 +#: includes/class.cooked-settings.php:185 #: includes/class.cooked-taxonomies.php:38 #: includes/class.cooked-taxonomies.php:48 msgid "Categories" msgstr "" -#: includes/class.cooked-recipes.php:966 +#: includes/class.cooked-recipes.php:970 #: includes/class.cooked-taxonomies.php:41 #: includes/widgets/recipe-categories.php:48 msgid "All Categories" msgstr "" -#: includes/class.cooked-recipes.php:1034 +#: includes/class.cooked-recipes.php:1038 msgid "Find a recipe..." msgstr "" -#: includes/class.cooked-recipes.php:1049 +#: includes/class.cooked-recipes.php:1053 msgid "Newest first" msgstr "" -#: includes/class.cooked-recipes.php:1053 +#: includes/class.cooked-recipes.php:1057 msgid "Oldest first" msgstr "" -#: includes/class.cooked-recipes.php:1057 +#: includes/class.cooked-recipes.php:1061 msgid "Alphabetical (A-Z)" msgstr "" -#: includes/class.cooked-recipes.php:1061 +#: includes/class.cooked-recipes.php:1065 msgid "Alphabetical (Z-A)" msgstr "" @@ -1462,318 +1462,318 @@ msgstr "" msgid "Cooked settings has been updated!" msgstr "" -#: includes/class.cooked-settings.php:135 +#: includes/class.cooked-settings.php:137 msgid "Choose a page..." msgstr "" -#: includes/class.cooked-settings.php:135 +#: includes/class.cooked-settings.php:137 msgid "No pages" msgstr "" -#: includes/class.cooked-settings.php:136 +#: includes/class.cooked-settings.php:138 msgid "No default" msgstr "" -#: includes/class.cooked-settings.php:156 +#: includes/class.cooked-settings.php:158 msgid "General" msgstr "" -#: includes/class.cooked-settings.php:160 +#: includes/class.cooked-settings.php:162 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:162 +#: includes/class.cooked-settings.php:164 msgid "Create a page with the %s shortcode on it, then choose it from this dropdown." msgstr "" -#: includes/class.cooked-settings.php:168 +#: includes/class.cooked-settings.php:170 msgid "Recipes Per Page" msgstr "" #. translators: a description on how to choose the default number of recipes per page. -#: includes/class.cooked-settings.php:170 +#: includes/class.cooked-settings.php:172 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:170 +#: includes/class.cooked-settings.php:172 msgid "Settings > Reading" msgstr "" -#: includes/class.cooked-settings.php:176 +#: includes/class.cooked-settings.php:178 msgid "Recipe Taxonomies" msgstr "" -#: includes/class.cooked-settings.php:177 +#: includes/class.cooked-settings.php:179 msgid "Choose which taxonomies you want to enable for your recipes." msgstr "" -#: includes/class.cooked-settings.php:188 +#: includes/class.cooked-settings.php:190 msgid "Global Recipe Toggles" msgstr "" -#: includes/class.cooked-settings.php:189 +#: includes/class.cooked-settings.php:191 msgid "You can quickly hide or show different recipe elements (site-wide) with these checkboxes." msgstr "" -#: includes/class.cooked-settings.php:208 +#: includes/class.cooked-settings.php:210 msgid "Carbs Format" msgstr "" -#: includes/class.cooked-settings.php:209 +#: includes/class.cooked-settings.php:211 msgid "You can display carbs as \"Total\" or \"Net\"." msgstr "" -#: includes/class.cooked-settings.php:215 +#: includes/class.cooked-settings.php:217 msgid "Total Carbs" msgstr "" -#: includes/class.cooked-settings.php:216 +#: includes/class.cooked-settings.php:218 msgid "Net Carbs" msgstr "" -#: includes/class.cooked-settings.php:221 +#: includes/class.cooked-settings.php:223 msgid "Author Name Format" msgstr "" -#: includes/class.cooked-settings.php:222 +#: includes/class.cooked-settings.php:224 msgid "You can show the full author's name or just a part of it." msgstr "" -#: includes/class.cooked-settings.php:228 +#: includes/class.cooked-settings.php:230 msgid "Full name" msgstr "" -#: includes/class.cooked-settings.php:229 +#: includes/class.cooked-settings.php:231 msgid "Full first name w/last name initial" msgstr "" -#: includes/class.cooked-settings.php:230 +#: includes/class.cooked-settings.php:232 msgid "First name initial w/full last name" msgstr "" -#: includes/class.cooked-settings.php:231 +#: includes/class.cooked-settings.php:233 msgid "First name only" msgstr "" -#: includes/class.cooked-settings.php:236 +#: includes/class.cooked-settings.php:238 msgid "Author Links" msgstr "" -#: includes/class.cooked-settings.php:237 +#: includes/class.cooked-settings.php:239 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:244 +#: includes/class.cooked-settings.php:246 msgid "Disable Author Links" msgstr "" -#: includes/class.cooked-settings.php:249 +#: includes/class.cooked-settings.php:251 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:251 +#: includes/class.cooked-settings.php:253 msgid "Optionally set the default recipe category for your %s shortcode display." msgstr "" -#: includes/class.cooked-settings.php:257 +#: includes/class.cooked-settings.php:259 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:259 +#: includes/class.cooked-settings.php:261 msgid "Set the default sort order for your %s shortcode display." msgstr "" -#: includes/class.cooked-settings.php:265 +#: includes/class.cooked-settings.php:267 msgid "Newest First" msgstr "" -#: includes/class.cooked-settings.php:266 +#: includes/class.cooked-settings.php:268 msgid "Oldest First" msgstr "" -#: includes/class.cooked-settings.php:267 +#: includes/class.cooked-settings.php:269 msgid "Alphabetical" msgstr "" -#: includes/class.cooked-settings.php:268 +#: includes/class.cooked-settings.php:270 msgid "Alphabetical (reversed)" msgstr "" -#: includes/class.cooked-settings.php:273 +#: includes/class.cooked-settings.php:275 msgid "WP Editor Roles" msgstr "" -#: includes/class.cooked-settings.php:274 +#: includes/class.cooked-settings.php:276 msgid "Choose which user roles can use the WP Editor for the Excerpt, Directions & Notes fields." msgstr "" -#: includes/class.cooked-settings.php:280 +#: includes/class.cooked-settings.php:282 msgid "Advanced Settings" msgstr "" #. translators: an option to only show recipes with the [cooked-recipe] shortcode. -#: includes/class.cooked-settings.php:290 +#: includes/class.cooked-settings.php:292 msgid "Disable Public Recipes" msgstr "" #. translators: an option to only show recipes with the [cooked-recipe] shortcode. -#: includes/class.cooked-settings.php:290 +#: includes/class.cooked-settings.php:292 msgid "Only show recipes using the %s shortcode." msgstr "" #. translators: an option to disable "meta" tags. -#: includes/class.cooked-settings.php:292 +#: includes/class.cooked-settings.php:294 msgid "Disable %s Tags" msgstr "" #. translators: an option to disable "meta" tags. -#: includes/class.cooked-settings.php:292 +#: includes/class.cooked-settings.php:294 msgid "Prevents duplicates when tags already exist." msgstr "" -#: includes/class.cooked-settings.php:293 +#: includes/class.cooked-settings.php:295 msgid "Disable \"Servings Switcher\"" msgstr "" -#: includes/class.cooked-settings.php:293 +#: includes/class.cooked-settings.php:295 msgid "Removes the servings dropdown on recipes." msgstr "" -#: includes/class.cooked-settings.php:294 +#: includes/class.cooked-settings.php:296 msgid "Disable Recipe Schema Output" msgstr "" -#: includes/class.cooked-settings.php:294 +#: includes/class.cooked-settings.php:296 msgid "You should only do this if you're using something else to output schema information." msgstr "" -#: includes/class.cooked-settings.php:295 +#: includes/class.cooked-settings.php:297 msgid "Disable Recipe Archive Page" msgstr "" -#: includes/class.cooked-settings.php:295 +#: includes/class.cooked-settings.php:297 msgid "Prevents the recipe archive from being displayed." msgstr "" -#: includes/class.cooked-settings.php:302 +#: includes/class.cooked-settings.php:304 msgid "Design" msgstr "" -#: includes/class.cooked-settings.php:306 +#: includes/class.cooked-settings.php:308 msgid "Dark Mode" msgstr "" -#: includes/class.cooked-settings.php:307 +#: includes/class.cooked-settings.php:309 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:313 +#: includes/class.cooked-settings.php:315 msgid "Enable \"Dark Mode\"" msgstr "" -#: includes/class.cooked-settings.php:318 +#: includes/class.cooked-settings.php:320 msgid "Author Images" msgstr "" -#: includes/class.cooked-settings.php:319 +#: includes/class.cooked-settings.php:321 msgid "If you do not want to display the author images (avatars), you can disable them here." msgstr "" -#: includes/class.cooked-settings.php:326 +#: includes/class.cooked-settings.php:328 msgid "Hide Author Images" msgstr "" -#: includes/class.cooked-settings.php:331 +#: includes/class.cooked-settings.php:333 msgid "Main Color" msgstr "" -#: includes/class.cooked-settings.php:332 +#: includes/class.cooked-settings.php:334 msgid "Used on buttons, cooking timer, etc." msgstr "" -#: includes/class.cooked-settings.php:338 +#: includes/class.cooked-settings.php:340 msgid "Main Color (on hover)" msgstr "" -#: includes/class.cooked-settings.php:339 +#: includes/class.cooked-settings.php:341 msgid "Used when hovering over buttons." msgstr "" -#: includes/class.cooked-settings.php:345 +#: includes/class.cooked-settings.php:347 msgid "First Responsive Breakpoint" msgstr "" -#: includes/class.cooked-settings.php:346 +#: includes/class.cooked-settings.php:348 msgid "Set the first responsive breakpoint. Best for large tablets." msgstr "" -#: includes/class.cooked-settings.php:352 +#: includes/class.cooked-settings.php:354 msgid "Second Responsive Breakpoint" msgstr "" -#: includes/class.cooked-settings.php:353 +#: includes/class.cooked-settings.php:355 msgid "Set the second responsive breakpoint. Best for small tablets." msgstr "" -#: includes/class.cooked-settings.php:359 +#: includes/class.cooked-settings.php:361 msgid "Third Responsive Breakpoint" msgstr "" -#: includes/class.cooked-settings.php:360 +#: includes/class.cooked-settings.php:362 msgid "Set the third responsive breakpoint. Best for phones and other small devices." msgstr "" -#: includes/class.cooked-settings.php:368 +#: includes/class.cooked-settings.php:370 msgid "Permalinks" msgstr "" -#: includes/class.cooked-settings.php:372 +#: includes/class.cooked-settings.php:374 msgid "Recipe Permalink" msgstr "" -#: includes/class.cooked-settings.php:375 +#: includes/class.cooked-settings.php:377 msgid "recipe-name" msgstr "" -#: includes/class.cooked-settings.php:379 +#: includes/class.cooked-settings.php:381 msgid "Recipe Author Permalink" msgstr "" -#: includes/class.cooked-settings.php:382 +#: includes/class.cooked-settings.php:384 msgid "author-name" msgstr "" -#: includes/class.cooked-settings.php:386 +#: includes/class.cooked-settings.php:388 msgid "Recipe Category Permalink" msgstr "" -#: includes/class.cooked-settings.php:389 +#: includes/class.cooked-settings.php:391 msgid "recipe-category-name" msgstr "" #. translators: posts_per_page default -#: includes/class.cooked-settings.php:400 +#: includes/class.cooked-settings.php:402 msgid "WordPress Default %s" msgstr "" -#: includes/class.cooked-settings.php:405 +#: includes/class.cooked-settings.php:407 msgid "Show All (no pagination)" msgstr "" -#: includes/class.cooked-settings.php:549 +#: includes/class.cooked-settings.php:551 msgid "Begin Migration" msgstr "" #. translators: referring to the bottom of the Settings page. -#: includes/class.cooked-shortcodes.php:138 +#: includes/class.cooked-shortcodes.php:148 msgid "Public recipes are currently disabled. You can change this at the bottom of the %s page." msgstr "" -#: includes/class.cooked-shortcodes.php:286 +#: includes/class.cooked-shortcodes.php:296 msgid "(recipe not found or in draft status)" msgstr "" diff --git a/package-lock.json b/package-lock.json index 48efb64..d2762b6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "cooked", - "version": "1.9.4", + "version": "1.9.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "cooked", - "version": "1.9.4", + "version": "1.9.5", "license": "ISC", "devDependencies": { "@playwright/test": "^1.48.2", @@ -623,9 +623,9 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "22.10.3", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.10.3.tgz", - "integrity": "sha512-DifAyw4BkrufCILvD3ucnuN8eydUfc/C1GlyrnI+LK6543w5/L3VeVgf05o3B4fqSXP1dKYLOZsKfutpxPzZrw==", + "version": "22.10.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.10.5.tgz", + "integrity": "sha512-F8Q+SeGimwOo86fiovQh8qiXfFEh2/ocYv7tU5pJ3EXMSSxk1Joj5wefpFK2fHTf/N6HKGSxIDBT9f3gCxXPkQ==", "dev": true, "license": "MIT", "dependencies": { @@ -644,9 +644,9 @@ } }, "node_modules/@wordpress/e2e-test-utils-playwright": { - "version": "1.14.0", - "resolved": "https://registry.npmjs.org/@wordpress/e2e-test-utils-playwright/-/e2e-test-utils-playwright-1.14.0.tgz", - "integrity": "sha512-G9r3ZysgzAmUbR4bjGAEEP6P2RCIAG8uMU7yyzxOAHegINSbF3shEZKvVNBeKxNwHKAVa9koh/niGN3U4Kr6Rw==", + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/@wordpress/e2e-test-utils-playwright/-/e2e-test-utils-playwright-1.15.0.tgz", + "integrity": "sha512-f6dndDExVQilTG3ouDOIWfSLACqkwzupWXU8rYpLQJA+4AW7vAj1Ig8Gpjj2/xufBfdKtljxN+Nt9K57GMk/aw==", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { @@ -866,9 +866,9 @@ } }, "node_modules/bare-events": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/bare-events/-/bare-events-2.5.0.tgz", - "integrity": "sha512-/E8dDe9dsbLyh2qrZ64PEPadOQ0F4gbl1sUJOrmph7xOiIxfY8vwab/4bFLh4Y88/Hk/ujKcrQKc+ps0mv873A==", + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/bare-events/-/bare-events-2.5.2.tgz", + "integrity": "sha512-KSdMqLj1ZERZMP1PTmnLK7SqJu9z9/SbwUUPZly2puMtfVcytC+jl6mb/9XYiqq0PXcx1rNDS+Qvl1g54Lho6A==", "dev": true, "license": "Apache-2.0", "optional": true @@ -3789,9 +3789,9 @@ "license": "MIT" }, "node_modules/sass": { - "version": "1.83.0", - "resolved": "https://registry.npmjs.org/sass/-/sass-1.83.0.tgz", - "integrity": "sha512-qsSxlayzoOjdvXMVLkzF84DJFc2HZEL/rFyGIKbbilYtAvlCxyuzUeff9LawTn4btVnLKg75Z8MMr1lxU1lfGw==", + "version": "1.83.1", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.83.1.tgz", + "integrity": "sha512-EVJbDaEs4Rr3F0glJzFSOvtg2/oy2V/YrGFPqPY24UqcLDWcI9ZY5sN+qyO3c/QCZwzgfirvhXvINiJCE/OLcA==", "dev": true, "license": "MIT", "dependencies": { @@ -4199,20 +4199,20 @@ } }, "node_modules/tldts-core": { - "version": "6.1.70", - "resolved": "https://registry.npmjs.org/tldts-core/-/tldts-core-6.1.70.tgz", - "integrity": "sha512-RNnIXDB1FD4T9cpQRErEqw6ZpjLlGdMOitdV+0xtbsnwr4YFka1zpc7D4KD+aAn8oSG5JyFrdasZTE04qDE9Yg==", + "version": "6.1.71", + "resolved": "https://registry.npmjs.org/tldts-core/-/tldts-core-6.1.71.tgz", + "integrity": "sha512-LRbChn2YRpic1KxY+ldL1pGXN/oVvKfCVufwfVzEQdFYNo39uF7AJa/WXdo+gYO7PTvdfkCPCed6Hkvz/kR7jg==", "dev": true, "license": "MIT" }, "node_modules/tldts-icann": { - "version": "6.1.70", - "resolved": "https://registry.npmjs.org/tldts-icann/-/tldts-icann-6.1.70.tgz", - "integrity": "sha512-sGnxNnxb/03iSROBEBiXGX49DMEktxWVUoTeHWekJOOrFfNRWfyAcOWphuRDau2jZrshvMhQPf3azYHyxV04/w==", + "version": "6.1.71", + "resolved": "https://registry.npmjs.org/tldts-icann/-/tldts-icann-6.1.71.tgz", + "integrity": "sha512-hEbB+VrNQM3Nhs+2FFWrCNbYGhFJb9MzfzEjK4qrZUBC2y2v0V99sJofJE99SfI0jac4ZdPBtdU82ges+EQGIw==", "dev": true, "license": "MIT", "dependencies": { - "tldts-core": "^6.1.70" + "tldts-core": "^6.1.71" } }, "node_modules/to-regex-range": { diff --git a/package.json b/package.json index c20580c..161d942 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cooked", - "version": "1.9.4", + "version": "1.9.5", "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 e5f6f0e..f14482f 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.4 +Stable tag: 1.9.5 Requires PHP: 7.4 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -76,10 +76,16 @@ Be sure to check the [Cooked Documentation](https://github.com/XjSv/Cooked/wiki) == Upgrade Notice == -Version 1.9.4 includes a hotfix for +Version 1.9.5 includes a fix for a memory issue that was causing crashes, especially when used with Elementor. Please update to this version as soon as possible. == Changelog == += 1.9.5 = +* **FIX:** Resolved an issue with the preprocess_shortcode filter that was causing memory problems and plugin crashes, especially when used with Elementor. +* **FIX:** Enhanced the navigation for recipe categories and tags in the admin dashboard, ensuring the Recipes menu remains expanded. +* **FIX:** Addressed compatibility issues with PHP v8.1. +* **FIX:** Corrected a bug affecting the pretty URLs for sorting and searching in the Browse Recipe feature. + = 1.9.4 = * **FIX:** Resolved an issue where user profile avatar photos were not displaying at the correct size. * **FIX:** Fixed recipe permalinks when the browse recipe page has the same slug as the recipes permalink.