Changeset 3386266
- Timestamp:
- 10/29/2025 08:41:33 AM (5 months ago)
- Location:
- mailpoet/trunk
- Files:
-
- 28 edited
-
generated/twig/11/11d3f6de05938fc53f6b51a30553350ab288ef245cc1007bdfbcde41b50bd1cf.php (modified) (13 diffs)
-
generated/twig/2f/2fdaf34bbda3125546cd6c64c0391b56b819f1dc3be4d0692dbfcc750c52ba1c.php (modified) (1 diff)
-
generated/twig/32/326afb5c4a139f2d408eebdd2be85b805c8b5c3ccbf74d019dd788528c925a24.php (modified) (1 diff)
-
generated/twig/39/39da32f9fe8a5caa16807fdb58b8d6bb1943456eb890fa93c71599fef75864bd.php (modified) (1 diff)
-
generated/twig/5d/5d0a911176e50085fa0f645dafa33f6bb54942f4cc0c7d027b1f8e108f984df4.php (modified) (11 diffs)
-
generated/twig/73/73f3a8c1cc9a65ca3413f4ea3ff2718b2d5edfe9fb53239c729b3503e745621a.php (modified) (1 diff)
-
generated/twig/75/75e8ff9ca041db525f3957e2c3d891df76415c982d665a3645418c035784be2c.php (modified) (1 diff)
-
generated/twig/94/94feef30e518f71dae774ce3b21122b280d35f06cb7d39a98f5d0937e631ee72.php (modified) (1 diff)
-
generated/twig/99/997d183eebcab0f97b233d325fdc85c11ab603462c24004960dbf17428d73ffb.php (modified) (1 diff)
-
generated/twig/9e/9e950b56ab1fe2a7d168f308dfb252c679285fd70feda7ec60848e83a681f491.php (modified) (1 diff)
-
generated/twig/a2/a2b5fdaae4fbc89e9831739c7a4679fdaf0545d2bd26cd08ee7fa4779384bd6c.php (modified) (1 diff)
-
generated/twig/a8/a8a69edd67b2c2be7dbac60cc1daf2a16b6db17e734b5d6eab50a5f18fb1dc20.php (modified) (1 diff)
-
generated/twig/ac/ac17e21d1704c48c95099807d725545ad5e86914c1a5f715c63f05aa98cca8b0.php (modified) (2 diffs)
-
generated/twig/bf/bfefa6e80602777f3d773ee8a7d946d30d6fb43e7efc99cf4368d90e077b7041.php (modified) (1 diff)
-
generated/twig/d4/d46a8b1adbdc3d9d7e990e9e5a5c7c9aefb7d2ce2e79328b83e141b7d8b01459.php (modified) (8 diffs)
-
generated/twig/da/da91af5545e742a5191e1adfba550a85e3f08dc8b14c5ee04cdc9bdec6ccb7b1.php (modified) (3 diffs)
-
generated/twig/e8/e8f34663cc49d1f0815e6d624e5e2a152275ac7e3e8c1ac167a8a3b1d922c1af.php (modified) (2 diffs)
-
generated/twig/ed/ed83f1d012a4620973154ed50cf15a673fc794edcbd184156b4b8a002feb8950.php (modified) (1 diff)
-
generated/twig/f8/f81228294abb4d565e0deea863de36712b0926420bf8d1edf6e72504f68d1567.php (modified) (1 diff)
-
lang/mailpoet.pot (modified) (5 diffs)
-
lib/Automation/Engine/Utils/Json.php (modified) (1 diff)
-
lib/EmailEditor/Integrations/MailPoet/EditorPageRenderer.php (modified) (5 diffs)
-
lib/PostEditorBlocks/SubscriptionFormBlock.php (modified) (1 diff)
-
lib/Twig/Functions.php (modified) (2 diffs)
-
lib/Validator/Schema.php (modified) (1 diff)
-
mailpoet.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
-
vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mailpoet/trunk/generated/twig/11/11d3f6de05938fc53f6b51a30553350ab288ef245cc1007bdfbcde41b50bd1cf.php
r3339642 r3386266 901 901 var mailpoet_product_categories = "; 902 902 // line 725 903 yield json_encode(($context["product_categories"] ?? null));903 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["product_categories"] ?? null)); 904 904 yield "; 905 905 var mailpoet_products = "; 906 906 // line 726 907 yield json_encode(($context["products"] ?? null));907 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["products"] ?? null)); 908 908 yield "; 909 909 var mailpoet_original_template_body = "; 910 910 // line 727 911 yield json_encode(($context["original_template_body"] ?? null));911 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["original_template_body"] ?? null)); 912 912 yield "; 913 913 … … 2393 2393 contents: "; 2394 2394 // line 1821 2395 yield json_encode(CoreExtension::getAttribute($this->env, $this->source, ($context["woocommerce"] ?? null), "email_headings", [], "any", false, false, false, 1821));2395 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(CoreExtension::getAttribute($this->env, $this->source, ($context["woocommerce"] ?? null), "email_headings", [], "any", false, false, false, 1821)); 2396 2396 yield ", 2397 2397 }, … … 2400 2400 discountType: "; 2401 2401 // line 1825 2402 yield json_encode(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["woocommerce"] ?? null), "coupon", [], "any", false, false, false, 1825), "defaults", [], "any", false, false, false, 1825), "discountType", [], "any", false, false, false, 1825));2402 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["woocommerce"] ?? null), "coupon", [], "any", false, false, false, 1825), "defaults", [], "any", false, false, false, 1825), "discountType", [], "any", false, false, false, 1825)); 2403 2403 yield ", 2404 2404 code: "; 2405 2405 // line 1826 2406 yield json_encode(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["woocommerce"] ?? null), "coupon", [], "any", false, false, false, 1826), "defaults", [], "any", false, false, false, 1826), "code", [], "any", false, false, false, 1826));2406 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["woocommerce"] ?? null), "coupon", [], "any", false, false, false, 1826), "defaults", [], "any", false, false, false, 1826), "code", [], "any", false, false, false, 1826)); 2407 2407 yield ", 2408 2408 amountMax: "; 2409 2409 // line 1827 2410 yield json_encode(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["woocommerce"] ?? null), "coupon", [], "any", false, false, false, 1827), "defaults", [], "any", false, false, false, 1827), "amountMax", [], "any", false, false, false, 1827));2410 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["woocommerce"] ?? null), "coupon", [], "any", false, false, false, 1827), "defaults", [], "any", false, false, false, 1827), "amountMax", [], "any", false, false, false, 1827)); 2411 2411 yield ", 2412 2412 amount: 10, … … 2432 2432 shortcodes: "; 2433 2433 // line 1848 2434 yield json_encode(($context["shortcodes"] ?? null));2434 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["shortcodes"] ?? null)); 2435 2435 yield ", 2436 2436 sidepanelWidth: '331px', … … 2489 2489 fontColor: "; 2490 2490 // line 1873 2491 yield json_encode(CoreExtension::getAttribute($this->env, $this->source, ($context["woocommerce"] ?? null), "text_color", [], "any", false, false, false, 1873));2491 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(CoreExtension::getAttribute($this->env, $this->source, ($context["woocommerce"] ?? null), "text_color", [], "any", false, false, false, 1873)); 2492 2492 yield ", 2493 2493 }, … … 2495 2495 fontColor: "; 2496 2496 // line 1876 2497 yield json_encode(CoreExtension::getAttribute($this->env, $this->source, ($context["woocommerce"] ?? null), "base_color", [], "any", false, false, false, 1876));2497 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(CoreExtension::getAttribute($this->env, $this->source, ($context["woocommerce"] ?? null), "base_color", [], "any", false, false, false, 1876)); 2498 2498 yield ", 2499 2499 }, … … 2501 2501 fontColor: "; 2502 2502 // line 1879 2503 yield json_encode(CoreExtension::getAttribute($this->env, $this->source, ($context["woocommerce"] ?? null), "base_color", [], "any", false, false, false, 1879));2503 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(CoreExtension::getAttribute($this->env, $this->source, ($context["woocommerce"] ?? null), "base_color", [], "any", false, false, false, 1879)); 2504 2504 yield ", 2505 2505 }, … … 2507 2507 fontColor: "; 2508 2508 // line 1882 2509 yield json_encode(CoreExtension::getAttribute($this->env, $this->source, ($context["woocommerce"] ?? null), "base_color", [], "any", false, false, false, 1882));2509 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(CoreExtension::getAttribute($this->env, $this->source, ($context["woocommerce"] ?? null), "base_color", [], "any", false, false, false, 1882)); 2510 2510 yield ", 2511 2511 }, … … 2513 2513 fontColor: "; 2514 2514 // line 1885 2515 yield json_encode(CoreExtension::getAttribute($this->env, $this->source, ($context["woocommerce"] ?? null), "link_color", [], "any", false, false, false, 1885));2515 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(CoreExtension::getAttribute($this->env, $this->source, ($context["woocommerce"] ?? null), "link_color", [], "any", false, false, false, 1885)); 2516 2516 yield ", 2517 2517 }, … … 2519 2519 backgroundColor: "; 2520 2520 // line 1888 2521 yield json_encode(CoreExtension::getAttribute($this->env, $this->source, ($context["woocommerce"] ?? null), "body_background_color", [], "any", false, false, false, 1888));2521 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(CoreExtension::getAttribute($this->env, $this->source, ($context["woocommerce"] ?? null), "body_background_color", [], "any", false, false, false, 1888)); 2522 2522 yield ", 2523 2523 }, … … 2525 2525 backgroundColor: "; 2526 2526 // line 1891 2527 yield json_encode(CoreExtension::getAttribute($this->env, $this->source, ($context["woocommerce"] ?? null), "background_color", [], "any", false, false, false, 1891));2527 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(CoreExtension::getAttribute($this->env, $this->source, ($context["woocommerce"] ?? null), "background_color", [], "any", false, false, false, 1891)); 2528 2528 yield ", 2529 2529 }, … … 2531 2531 brandingColor: "; 2532 2532 // line 1894 2533 yield json_encode(CoreExtension::getAttribute($this->env, $this->source, ($context["woocommerce"] ?? null), "base_color", [], "any", false, false, false, 1894));2533 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(CoreExtension::getAttribute($this->env, $this->source, ($context["woocommerce"] ?? null), "base_color", [], "any", false, false, false, 1894)); 2534 2534 yield ", 2535 2535 headingFontColor: "; 2536 2536 // line 1895 2537 yield json_encode(CoreExtension::getAttribute($this->env, $this->source, ($context["woocommerce"] ?? null), "base_text_color", [], "any", false, false, false, 1895));2537 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(CoreExtension::getAttribute($this->env, $this->source, ($context["woocommerce"] ?? null), "base_text_color", [], "any", false, false, false, 1895)); 2538 2538 yield ", 2539 2539 isSavedWithUpdatedStyles: true, … … 2552 2552 // line 1904 2553 2553 yield " coupon: "; 2554 yield json_encode(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["woocommerce"] ?? null), "coupon", [], "any", false, false, false, 1904), "config", [], "any", false, false, false, 1904));2554 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["woocommerce"] ?? null), "coupon", [], "any", false, false, false, 1904), "config", [], "any", false, false, false, 1904)); 2555 2555 yield ", 2556 2556 }; -
mailpoet/trunk/generated/twig/2f/2fdaf34bbda3125546cd6c64c0391b56b819f1dc3be4d0692dbfcc750c52ba1c.php
r3104044 r3386266 57 57 var mailpoet_locale_full = "; 58 58 // line 7 59 yield json_encode(($context["locale_full"] ?? null));59 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["locale_full"] ?? null)); 60 60 yield "; 61 61 var mailpoet_automation_api = "; 62 62 // line 8 63 yield json_encode(($context["api"] ?? null));63 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["api"] ?? null)); 64 64 yield "; 65 65 var mailpoet_json_api = "; 66 66 // line 9 67 yield json_encode(($context["jsonapi"] ?? null));67 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["jsonapi"] ?? null)); 68 68 yield "; 69 69 var mailpoet_segments = "; 70 70 // line 10 71 yield json_encode(($context["segments"] ?? null));71 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["segments"] ?? null)); 72 72 yield "; 73 73 var mailpoet_automation_registry = "; 74 74 // line 11 75 yield json_encode(($context["registry"] ?? null));75 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["registry"] ?? null)); 76 76 yield "; 77 77 var mailpoet_automation_context = "; 78 78 // line 12 79 yield json_encode(($context["context"] ?? null));79 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["context"] ?? null)); 80 80 yield "; 81 81 var mailpoet_automation = "; 82 82 // line 13 83 yield ((($context["automation"] ?? null)) ? ( json_encode(($context["automation"] ?? null))) : ("undefined"));83 yield ((($context["automation"] ?? null)) ? ($this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["automation"] ?? null))) : ("undefined")); 84 84 yield "; 85 85 </script> -
mailpoet/trunk/generated/twig/32/326afb5c4a139f2d408eebdd2be85b805c8b5c3ccbf74d019dd788528c925a24.php
r3104044 r3386266 58 58 // line 8 59 59 yield " var mailpoet_welcome_wizard_url = "; 60 yield json_encode(($context["welcome_wizard_url"] ?? null));60 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["welcome_wizard_url"] ?? null)); 61 61 yield "; 62 62 var mailpoet_welcome_wizard_current_step = "; 63 63 // line 9 64 yield json_encode(($context["welcome_wizard_current_step"] ?? null));64 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["welcome_wizard_current_step"] ?? null)); 65 65 yield "; 66 66 "; -
mailpoet/trunk/generated/twig/39/39da32f9fe8a5caa16807fdb58b8d6bb1943456eb890fa93c71599fef75864bd.php
r3104044 r3386266 66 66 var mailpoet_custom_fields = "; 67 67 // line 9 68 yield json_encode(($context["custom_fields"] ?? null));68 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["custom_fields"] ?? null)); 69 69 yield "; 70 70 var mailpoet_static_segments_list = "; 71 71 // line 10 72 yield json_encode(($context["static_segments_list"] ?? null));72 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["static_segments_list"] ?? null)); 73 73 yield "; 74 74 var wordpress_editable_roles_list = "; 75 75 // line 11 76 yield json_encode(($context["wordpress_editable_roles_list"] ?? null));76 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["wordpress_editable_roles_list"] ?? null)); 77 77 yield "; 78 78 var mailpoet_newsletters_list = "; 79 79 // line 12 80 yield json_encode(($context["newsletters_list"] ?? null));80 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["newsletters_list"] ?? null)); 81 81 yield "; 82 82 var mailpoet_product_attributes = "; 83 83 // line 13 84 yield json_encode(($context["product_attributes"] ?? null));84 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["product_attributes"] ?? null)); 85 85 yield "; 86 86 var mailpoet_local_product_attributes = "; 87 87 // line 14 88 yield json_encode(($context["local_product_attributes"] ?? null));88 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["local_product_attributes"] ?? null)); 89 89 yield "; 90 90 var mailpoet_product_categories = "; 91 91 // line 15 92 yield json_encode(($context["product_categories"] ?? null));92 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["product_categories"] ?? null)); 93 93 yield "; 94 94 var mailpoet_product_tags = "; 95 95 // line 16 96 yield json_encode(($context["product_tags"] ?? null));96 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["product_tags"] ?? null)); 97 97 yield "; 98 98 var mailpoet_products = "; 99 99 // line 17 100 yield json_encode(($context["products"] ?? null));100 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["products"] ?? null)); 101 101 yield "; 102 102 var mailpoet_membership_plans = "; 103 103 // line 18 104 yield json_encode(($context["membership_plans"] ?? null));104 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["membership_plans"] ?? null)); 105 105 yield "; 106 106 var mailpoet_subscription_products = "; 107 107 // line 19 108 yield json_encode(($context["subscription_products"] ?? null));108 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["subscription_products"] ?? null)); 109 109 yield "; 110 110 var mailpoet_can_use_woocommerce_memberships = "; 111 111 // line 20 112 yield json_encode(($context["can_use_woocommerce_memberships"] ?? null));112 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["can_use_woocommerce_memberships"] ?? null)); 113 113 yield "; 114 114 var mailpoet_can_use_woocommerce_subscriptions = "; 115 115 // line 21 116 yield json_encode(($context["can_use_woocommerce_subscriptions"] ?? null));116 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["can_use_woocommerce_subscriptions"] ?? null)); 117 117 yield "; 118 118 var mailpoet_woocommerce_currency_symbol = "; 119 119 // line 22 120 yield json_encode(($context["woocommerce_currency_symbol"] ?? null));120 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["woocommerce_currency_symbol"] ?? null)); 121 121 yield "; 122 122 var mailpoet_woocommerce_countries = "; 123 123 // line 23 124 yield json_encode(($context["woocommerce_countries"] ?? null));124 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["woocommerce_countries"] ?? null)); 125 125 yield "; 126 126 var mailpoet_woocommerce_payment_methods = "; 127 127 // line 24 128 yield json_encode(($context["woocommerce_payment_methods"] ?? null));128 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["woocommerce_payment_methods"] ?? null)); 129 129 yield "; 130 130 var mailpoet_woocommerce_shipping_methods = "; 131 131 // line 25 132 yield json_encode(($context["woocommerce_shipping_methods"] ?? null));132 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["woocommerce_shipping_methods"] ?? null)); 133 133 yield "; 134 134 var mailpoet_signup_forms = "; 135 135 // line 26 136 yield json_encode(($context["signup_forms"] ?? null));136 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["signup_forms"] ?? null)); 137 137 yield "; 138 138 var mailpoet_automations = "; 139 139 // line 27 140 yield json_encode(($context["automations"] ?? null));140 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["automations"] ?? null)); 141 141 yield "; 142 142 </script> -
mailpoet/trunk/generated/twig/5d/5d0a911176e50085fa0f645dafa33f6bb54942f4cc0c7d027b1f8e108f984df4.php
r3366518 r3386266 82 82 var mailpoet_date_offset = "; 83 83 // line 39 84 yield json_encode(get_option("gmt_offset"));84 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(get_option("gmt_offset")); 85 85 yield "; 86 86 var mailpoet_version = \""; … … 98 98 var mailpoet_urls = "; 99 99 // line 43 100 yield json_encode(($context["urls"] ?? null));100 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["urls"] ?? null)); 101 101 yield "; 102 102 var mailpoet_premium_version = "; 103 103 // line 44 104 yield json_encode($this->extensions['MailPoet\Twig\Functions']->getMailPoetPremiumVersion());104 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode($this->extensions['MailPoet\Twig\Functions']->getMailPoetPremiumVersion()); 105 105 yield "; 106 106 var mailpoet_main_page_slug = "; 107 107 // line 45 108 yield json_encode(($context["main_page"] ?? null));108 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["main_page"] ?? null)); 109 109 yield "; 110 110 var mailpoet_3rd_party_libs_enabled = "; … … 118 118 var mailpoet_analytics_public_id = "; 119 119 // line 48 120 yield json_encode($this->extensions['MailPoet\Twig\Analytics']->getPublicId());120 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode($this->extensions['MailPoet\Twig\Analytics']->getPublicId()); 121 121 yield "; 122 122 var mailpoet_analytics_new_public_id = "; … … 126 126 var mailpoet_free_domains = "; 127 127 // line 50 128 yield json_encode($this->extensions['MailPoet\Twig\Functions']->getFreeDomains());128 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode($this->extensions['MailPoet\Twig\Functions']->getFreeDomains()); 129 129 yield "; 130 130 var mailpoet_woocommerce_active = "; 131 131 // line 51 132 yield json_encode($this->extensions['MailPoet\Twig\Functions']->isWoocommerceActive());132 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode($this->extensions['MailPoet\Twig\Functions']->isWoocommerceActive()); 133 133 yield "; 134 134 var mailpoet_woocommerce_email_improvements_enabled = "; 135 135 // line 52 136 yield json_encode($this->extensions['MailPoet\Twig\Functions']->isWoocommerceEmailImprovementsEnabled());136 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode($this->extensions['MailPoet\Twig\Functions']->isWoocommerceEmailImprovementsEnabled()); 137 137 yield "; 138 138 var mailpoet_woocommerce_bookings_active = "; 139 139 // line 53 140 yield json_encode(($context["is_woocommerce_bookings_active"] ?? null));140 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["is_woocommerce_bookings_active"] ?? null)); 141 141 yield "; 142 142 var mailpoet_woocommerce_subscriptions_active = "; 143 143 // line 54 144 yield json_encode(($context["is_woocommerce_subscriptions_active"] ?? null));144 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["is_woocommerce_subscriptions_active"] ?? null)); 145 145 yield "; 146 146 var mailpoet_woocommerce_store_config = "; 147 147 // line 55 148 yield json_encode(($context["woocommerce_store_config"] ?? null));148 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["woocommerce_store_config"] ?? null)); 149 149 yield "; 150 150 // RFC 5322 standard; http://emailregex.com/ combined with https://google.github.io/closure-library/api/goog.format.EmailAddress.html#isValid … … 152 152 var mailpoet_feature_flags = "; 153 153 // line 58 154 yield json_encode(($context["feature_flags"] ?? null));154 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["feature_flags"] ?? null)); 155 155 yield "; 156 156 var mailpoet_referral_id = "; 157 157 // line 59 158 yield json_encode(($context["referral_id"] ?? null));158 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["referral_id"] ?? null)); 159 159 yield "; 160 160 var mailpoet_wp_segment_state = "; 161 161 // line 60 162 yield json_encode(($context["wp_segment_state"] ?? null));162 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["wp_segment_state"] ?? null)); 163 163 yield "; 164 164 var mailpoet_mta_method = '"; … … 168 168 var mailpoet_tracking_config = "; 169 169 // line 62 170 yield json_encode(($context["tracking_config"] ?? null));170 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["tracking_config"] ?? null)); 171 171 yield "; 172 172 var mailpoet_is_new_user = "; 173 173 // line 63 174 yield json_encode((($context["is_new_user"] ?? null) == true));174 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode((($context["is_new_user"] ?? null) == true)); 175 175 yield "; 176 176 var mailpoet_installed_days_ago = "; 177 177 // line 64 178 yield json_encode(($context["installed_days_ago"] ?? null));178 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["installed_days_ago"] ?? null)); 179 179 yield "; 180 180 var mailpoet_send_transactional_emails = "; 181 181 // line 65 182 yield json_encode(($context["send_transactional_emails"] ?? null));182 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["send_transactional_emails"] ?? null)); 183 183 yield "; 184 184 var mailpoet_transactional_emails_opt_in_notice_dismissed = "; 185 185 // line 66 186 yield json_encode(($context["transactional_emails_opt_in_notice_dismissed"] ?? null));186 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["transactional_emails_opt_in_notice_dismissed"] ?? null)); 187 187 yield "; 188 188 var mailpoet_deactivate_subscriber_after_inactive_days = "; 189 189 // line 67 190 yield json_encode(($context["deactivate_subscriber_after_inactive_days"] ?? null));190 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["deactivate_subscriber_after_inactive_days"] ?? null)); 191 191 yield "; 192 192 var mailpoet_woocommerce_version = "; 193 193 // line 68 194 yield json_encode($this->extensions['MailPoet\Twig\Functions']->getWooCommerceVersion());194 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode($this->extensions['MailPoet\Twig\Functions']->getWooCommerceVersion()); 195 195 yield "; 196 196 var mailpoet_track_wizard_loaded_via_woocommerce = "; 197 197 // line 69 198 yield json_encode(($context["track_wizard_loaded_via_woocommerce"] ?? null));198 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["track_wizard_loaded_via_woocommerce"] ?? null)); 199 199 yield "; 200 200 var mailpoet_track_wizard_loaded_via_woocommerce_marketing_dashboard = "; 201 201 // line 70 202 yield json_encode(($context["track_wizard_loaded_via_woocommerce_marketing_dashboard"] ?? null));202 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["track_wizard_loaded_via_woocommerce_marketing_dashboard"] ?? null)); 203 203 yield "; 204 204 var mailpoet_mail_function_enabled = '"; … … 212 212 var mailpoet_is_dotcom = "; 213 213 // line 73 214 yield json_encode($this->extensions['MailPoet\Twig\Functions']->isDotcom());214 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode($this->extensions['MailPoet\Twig\Functions']->isDotcom()); 215 215 yield "; 216 216 var mailpoet_cron_trigger_method = "; 217 217 // line 74 218 yield json_encode(($context["cron_trigger_method"] ?? null));218 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["cron_trigger_method"] ?? null)); 219 219 yield "; 220 220 var mailpoet_use_block_email_editor_for_automation_emails = "; 221 221 // line 75 222 yield json_encode(($context["use_block_email_editor_for_automation_emails"] ?? null));222 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["use_block_email_editor_for_automation_emails"] ?? null)); 223 223 yield "; 224 224 … … 243 243 var mailpoet_premium_link = "; 244 244 // line 83 245 yield json_encode(($context["link_premium"] ?? null));245 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["link_premium"] ?? null)); 246 246 yield "; 247 247 var mailpoet_premium_plugin_installed = "; 248 248 // line 84 249 yield json_encode(($context["premium_plugin_installed"] ?? null));249 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["premium_plugin_installed"] ?? null)); 250 250 yield "; 251 251 var mailpoet_premium_active = "; 252 252 // line 85 253 yield json_encode(($context["premium_plugin_active"] ?? null));253 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["premium_plugin_active"] ?? null)); 254 254 yield "; 255 255 var mailpoet_premium_plugin_download_url = "; 256 256 // line 86 257 yield json_encode(($context["premium_plugin_download_url"] ?? null));257 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["premium_plugin_download_url"] ?? null)); 258 258 yield "; 259 259 var mailpoet_premium_plugin_activation_url = "; 260 260 // line 87 261 yield json_encode(($context["premium_plugin_activation_url"] ?? null));261 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["premium_plugin_activation_url"] ?? null)); 262 262 yield "; 263 263 var mailpoet_has_valid_api_key = "; 264 264 // line 88 265 yield json_encode(($context["has_valid_api_key"] ?? null));265 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["has_valid_api_key"] ?? null)); 266 266 yield "; 267 267 var mailpoet_has_valid_premium_key = "; 268 268 // line 89 269 yield json_encode(($context["has_valid_premium_key"] ?? null));269 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["has_valid_premium_key"] ?? null)); 270 270 yield "; 271 271 var mailpoet_has_premium_support = "; 272 272 // line 90 273 yield json_encode(($context["has_premium_support"] ?? null));273 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["has_premium_support"] ?? null)); 274 274 yield "; 275 275 var has_mss_key_specified = "; 276 276 // line 91 277 yield json_encode(($context["has_mss_key_specified"] ?? null));277 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["has_mss_key_specified"] ?? null)); 278 278 yield "; 279 279 var mailpoet_mss_key_invalid = "; 280 280 // line 92 281 yield json_encode(($context["mss_key_invalid"] ?? null));281 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["mss_key_invalid"] ?? null)); 282 282 yield "; 283 283 var mailpoet_mss_key_valid = "; 284 284 // line 93 285 yield json_encode(($context["mss_key_valid"] ?? null));285 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["mss_key_valid"] ?? null)); 286 286 yield "; 287 287 var mailpoet_mss_key_pending_approval = '"; … … 291 291 var mailpoet_mss_active = "; 292 292 // line 95 293 yield json_encode(($context["mss_active"] ?? null));293 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["mss_active"] ?? null)); 294 294 yield "; 295 295 var mailpoet_plugin_partial_key = '"; … … 303 303 var mailpoet_subscribers_counts_cache_created_at = "; 304 304 // line 98 305 yield json_encode(($context["subscribers_counts_cache_created_at"] ?? null));305 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["subscribers_counts_cache_created_at"] ?? null)); 306 306 yield "; 307 307 var mailpoet_subscribers_limit = "; … … 311 311 var mailpoet_subscribers_limit_reached = "; 312 312 // line 100 313 yield json_encode(($context["subscribers_limit_reached"] ?? null));313 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["subscribers_limit_reached"] ?? null)); 314 314 yield "; 315 315 var mailpoet_email_volume_limit = "; 316 316 // line 101 317 yield json_encode(($context["email_volume_limit"] ?? null));317 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["email_volume_limit"] ?? null)); 318 318 yield "; 319 319 var mailpoet_email_volume_limit_reached = "; 320 320 // line 102 321 yield json_encode(($context["email_volume_limit_reached"] ?? null));321 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["email_volume_limit_reached"] ?? null)); 322 322 yield "; 323 323 var mailpoet_capabilities = "; 324 324 // line 103 325 yield json_encode(($context["capabilities"] ?? null));325 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["capabilities"] ?? null)); 326 326 yield "; 327 327 var mailpoet_tier = "; 328 328 // line 104 329 yield json_encode(($context["tier"] ?? null));329 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["tier"] ?? null)); 330 330 yield "; 331 331 var mailpoet_cdn_url = "; 332 332 // line 105 333 yield json_encode($this->extensions['MailPoet\Twig\Assets']->generateCdnUrl(""));333 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode($this->extensions['MailPoet\Twig\Assets']->generateCdnUrl("")); 334 334 yield "; 335 335 var mailpoet_tags = "; 336 336 // line 106 337 yield json_encode(($context["tags"] ?? null));337 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["tags"] ?? null)); 338 338 yield "; 339 339 -
mailpoet/trunk/generated/twig/73/73f3a8c1cc9a65ca3413f4ea3ff2718b2d5edfe9fb53239c729b3503e745621a.php
r3104044 r3386266 138 138 var MailPoetForm = "; 139 139 // line 72 140 yield json_encode(($context["mailpoet_form"] ?? null));140 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["mailpoet_form"] ?? null)); 141 141 yield "; 142 142 </script> -
mailpoet/trunk/generated/twig/75/75e8ff9ca041db525f3957e2c3d891df76415c982d665a3645418c035784be2c.php
r3150736 r3386266 58 58 var systemInfoData = "; 59 59 // line 8 60 yield json_encode(($context["systemInfoData"] ?? null));60 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["systemInfoData"] ?? null)); 61 61 yield "; 62 62 var systemStatusData = "; 63 63 // line 9 64 yield json_encode(($context["systemStatusData"] ?? null));64 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["systemStatusData"] ?? null)); 65 65 yield "; 66 66 var actionSchedulerData = "; 67 67 // line 10 68 yield json_encode(($context["actionSchedulerData"] ?? null));68 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["actionSchedulerData"] ?? null)); 69 69 yield "; 70 70 </script> -
mailpoet/trunk/generated/twig/94/94feef30e518f71dae774ce3b21122b280d35f06cb7d39a98f5d0937e631ee72.php
r3104044 r3386266 57 57 var mailpoet_locale_full = "; 58 58 // line 7 59 yield json_encode(($context["locale_full"] ?? null));59 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["locale_full"] ?? null)); 60 60 yield "; 61 61 var mailpoet_automation_api = "; 62 62 // line 8 63 yield json_encode(($context["api"] ?? null));63 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["api"] ?? null)); 64 64 yield "; 65 65 var mailpoet_automation_count = "; 66 66 // line 9 67 yield json_encode(($context["automationCount"] ?? null));67 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["automationCount"] ?? null)); 68 68 yield "; 69 69 var mailpoet_legacy_automation_count = "; 70 70 // line 10 71 yield json_encode(($context["legacyAutomationCount"] ?? null));71 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["legacyAutomationCount"] ?? null)); 72 72 yield "; 73 73 var mailpoet_automation_templates = "; 74 74 // line 11 75 yield json_encode(($context["templates"] ?? null));75 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["templates"] ?? null)); 76 76 yield "; 77 77 var mailpoet_automation_template_categories = "; 78 78 // line 12 79 yield json_encode(($context["template_categories"] ?? null));79 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["template_categories"] ?? null)); 80 80 yield "; 81 81 var mailpoet_automation_registry = "; 82 82 // line 13 83 yield json_encode(($context["registry"] ?? null));83 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["registry"] ?? null)); 84 84 yield "; 85 85 var mailpoet_automation_context = "; 86 86 // line 14 87 yield json_encode(($context["context"] ?? null));87 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["context"] ?? null)); 88 88 yield "; 89 89 var mailpoet_segments = "; 90 90 // line 15 91 yield json_encode(($context["segments"] ?? null));91 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["segments"] ?? null)); 92 92 yield "; 93 93 var mailpoet_roles = "; 94 94 // line 16 95 yield json_encode(($context["roles"] ?? null));95 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["roles"] ?? null)); 96 96 yield "; 97 97 var mailpoet_woocommerce_automatic_emails = "; 98 98 // line 17 99 yield json_encode(($context["automatic_emails"] ?? null));99 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["automatic_emails"] ?? null)); 100 100 yield "; 101 101 var mailpoet_legacy_automations_notice_dismissed = "; 102 102 // line 18 103 yield json_encode(($context["legacy_automations_notice_dismissed"] ?? null));103 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["legacy_automations_notice_dismissed"] ?? null)); 104 104 yield "; 105 105 </script> -
mailpoet/trunk/generated/twig/99/997d183eebcab0f97b233d325fdc85c11ab603462c24004960dbf17428d73ffb.php
r3104044 r3386266 57 57 var mailpoet_locale_full = "; 58 58 // line 7 59 yield json_encode(($context["locale_full"] ?? null));59 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["locale_full"] ?? null)); 60 60 yield "; 61 61 var mailpoet_automation_api = "; 62 62 // line 8 63 yield json_encode(($context["api"] ?? null));63 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["api"] ?? null)); 64 64 yield "; 65 65 var mailpoet_json_api = "; 66 66 // line 9 67 yield json_encode(($context["jsonapi"] ?? null));67 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["jsonapi"] ?? null)); 68 68 yield "; 69 69 var mailpoet_automation_registry = "; 70 70 // line 10 71 yield json_encode(($context["registry"] ?? null));71 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["registry"] ?? null)); 72 72 yield "; 73 73 var mailpoet_automation_context = "; 74 74 // line 11 75 yield json_encode(($context["context"] ?? null));75 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["context"] ?? null)); 76 76 yield "; 77 77 var mailpoet_automation = "; 78 78 // line 12 79 yield ((($context["automation"] ?? null)) ? ( json_encode(($context["automation"] ?? null))) : ("undefined"));79 yield ((($context["automation"] ?? null)) ? ($this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["automation"] ?? null))) : ("undefined")); 80 80 yield "; 81 81 </script> -
mailpoet/trunk/generated/twig/9e/9e950b56ab1fe2a7d168f308dfb252c679285fd70feda7ec60848e83a681f491.php
r3104044 r3386266 59 59 // line 9 60 60 yield " var mailpoet_mta_log = "; 61 yield json_encode(($context["mta_log"] ?? null));61 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["mta_log"] ?? null)); 62 62 yield "; 63 63 var mailpoet_homepage_data = "; 64 64 // line 10 65 yield json_encode(($context["homepage"] ?? null));65 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["homepage"] ?? null)); 66 66 yield "; 67 67 "; -
mailpoet/trunk/generated/twig/a2/a2b5fdaae4fbc89e9831739c7a4679fdaf0545d2bd26cd08ee7fa4779384bd6c.php
r3284564 r3386266 62 62 // line 12 63 63 yield " var mailpoet_logs = "; 64 yield json_encode(($context["logs"] ?? null));64 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["logs"] ?? null)); 65 65 yield "; 66 66 var mailpoet_logs_default_from = '"; -
mailpoet/trunk/generated/twig/a8/a8a69edd67b2c2be7dbac60cc1daf2a16b6db17e734b5d6eab50a5f18fb1dc20.php
r3104044 r3386266 57 57 var mailpoet_locale_full = "; 58 58 // line 7 59 yield json_encode(($context["locale_full"] ?? null));59 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["locale_full"] ?? null)); 60 60 yield "; 61 61 var mailpoet_automation_api = "; 62 62 // line 8 63 yield json_encode(($context["api"] ?? null));63 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["api"] ?? null)); 64 64 yield "; 65 65 var mailpoet_automation_templates = "; 66 66 // line 9 67 yield json_encode(($context["templates"] ?? null));67 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["templates"] ?? null)); 68 68 yield "; 69 69 var mailpoet_automation_template_categories = "; 70 70 // line 10 71 yield json_encode(($context["template_categories"] ?? null));71 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["template_categories"] ?? null)); 72 72 yield "; 73 73 var mailpoet_automation_registry = "; 74 74 // line 11 75 yield json_encode(($context["registry"] ?? null));75 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["registry"] ?? null)); 76 76 yield "; 77 77 var mailpoet_automation_context = "; 78 78 // line 12 79 yield json_encode(($context["context"] ?? null));79 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["context"] ?? null)); 80 80 yield "; 81 81 </script> -
mailpoet/trunk/generated/twig/ac/ac17e21d1704c48c95099807d725545ad5e86914c1a5f715c63f05aa98cca8b0.php
r3104044 r3386266 58 58 // line 8 59 59 yield " var mailpoet_authorized_emails = "; 60 yield json_encode(($context["authorized_emails"] ?? null));60 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["authorized_emails"] ?? null)); 61 61 yield "; 62 62 var mailpoet_verified_sender_domains = "; 63 63 // line 9 64 yield json_encode(($context["verified_sender_domains"] ?? null));64 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["verified_sender_domains"] ?? null)); 65 65 yield "; 66 66 var mailpoet_partially_verified_sender_domains = "; 67 67 // line 10 68 yield json_encode(($context["partially_verified_sender_domains"] ?? null));68 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["partially_verified_sender_domains"] ?? null)); 69 69 yield "; 70 70 var mailpoet_all_sender_domains = "; 71 71 // line 11 72 yield json_encode(($context["all_sender_domains"] ?? null));72 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["all_sender_domains"] ?? null)); 73 73 yield "; 74 74 var mailpoet_sender_restrictions = "; 75 75 // line 12 76 yield json_encode(($context["sender_restrictions"] ?? null));76 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["sender_restrictions"] ?? null)); 77 77 yield "; 78 78 var mailpoet_members_plugin_active = "; 79 79 // line 13 80 yield json_encode((($context["is_members_plugin_active"] ?? null) == true));80 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode((($context["is_members_plugin_active"] ?? null) == true)); 81 81 yield "; 82 82 var mailpoet_settings = "; 83 83 // line 14 84 yield json_encode(($context["settings"] ?? null));84 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["settings"] ?? null)); 85 85 yield "; 86 86 var mailpoet_segments = "; 87 87 // line 15 88 yield json_encode(($context["segments"] ?? null));88 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["segments"] ?? null)); 89 89 yield "; 90 90 var mailpoet_pages = "; 91 91 // line 16 92 yield json_encode(($context["pages"] ?? null));92 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["pages"] ?? null)); 93 93 yield "; 94 94 var mailpoet_mss_key_valid = "; 95 95 // line 17 96 yield json_encode(($context["mss_key_valid"] ?? null));96 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["mss_key_valid"] ?? null)); 97 97 yield "; 98 98 var mailpoet_premium_key_valid = "; 99 99 // line 18 100 yield json_encode(($context["premium_key_valid"] ?? null));100 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["premium_key_valid"] ?? null)); 101 101 yield "; 102 102 var mailpoet_paths = "; 103 103 // line 19 104 yield json_encode(($context["paths"] ?? null));104 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["paths"] ?? null)); 105 105 yield "; 106 106 var mailpoet_built_in_captcha_supported = "; 107 107 // line 20 108 yield json_encode((($context["built_in_captcha_supported"] ?? null) == true));108 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode((($context["built_in_captcha_supported"] ?? null) == true)); 109 109 yield "; 110 110 var mailpoet_free_plan_url = \""; … … 118 118 var mailpoet_hosts = "; 119 119 // line 23 120 yield json_encode(($context["hosts"] ?? null));120 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["hosts"] ?? null)); 121 121 yield "; 122 122 var mailpoet_current_site_title = "; 123 123 // line 24 124 yield json_encode(($context["current_site_title"] ?? null));124 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["current_site_title"] ?? null)); 125 125 yield "; 126 126 "; -
mailpoet/trunk/generated/twig/bf/bfefa6e80602777f3d773ee8a7d946d30d6fb43e7efc99cf4368d90e077b7041.php
r3292560 r3386266 62 62 var mailpoet_segments = "; 63 63 // line 8 64 yield json_encode(($context["segments"] ?? null));64 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["segments"] ?? null)); 65 65 yield "; 66 66 var mailpoet_custom_fields = "; 67 67 // line 9 68 yield json_encode(($context["custom_fields"] ?? null));68 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["custom_fields"] ?? null)); 69 69 yield "; 70 70 var mailpoet_month_names = "; 71 71 // line 10 72 yield json_encode(($context["month_names"] ?? null));72 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["month_names"] ?? null)); 73 73 yield "; 74 74 var mailpoet_date_formats = "; 75 75 // line 11 76 yield json_encode(($context["date_formats"] ?? null));76 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["date_formats"] ?? null)); 77 77 yield "; 78 78 </script> -
mailpoet/trunk/generated/twig/d4/d46a8b1adbdc3d9d7e990e9e5a5c7c9aefb7d2ce2e79328b83e141b7d8b01459.php
r3222343 r3386266 71 71 var mailpoet_segments = "; 72 72 // line 11 73 yield json_encode(($context["segments"] ?? null));73 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["segments"] ?? null)); 74 74 yield "; 75 75 var mailpoet_show_congratulate_after_first_newsletter = "; … … 79 79 var mailpoet_current_wp_user = "; 80 80 // line 13 81 yield json_encode(($context["current_wp_user"] ?? null));81 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["current_wp_user"] ?? null)); 82 82 yield "; 83 83 var mailpoet_current_wp_user_firstname = '"; … … 87 87 var mailpoet_lists = "; 88 88 // line 15 89 yield json_encode(($context["lists"] ?? null));89 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["lists"] ?? null)); 90 90 yield "; 91 91 var mailpoet_roles = "; 92 92 // line 16 93 yield json_encode(($context["roles"] ?? null));93 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["roles"] ?? null)); 94 94 yield "; 95 95 var mailpoet_current_date = "; 96 96 // line 17 97 yield json_encode(($context["current_date"] ?? null));97 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["current_date"] ?? null)); 98 98 yield "; 99 99 var mailpoet_tomorrow_date = "; 100 100 // line 18 101 yield json_encode(($context["tomorrow_date"] ?? null));101 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["tomorrow_date"] ?? null)); 102 102 yield "; 103 103 var mailpoet_current_date_time = "; 104 104 // line 19 105 yield json_encode(($context["current_date_time"] ?? null));105 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["current_date_time"] ?? null)); 106 106 yield "; 107 107 var mailpoet_schedule_time_of_day = "; 108 108 // line 20 109 yield json_encode(($context["schedule_time_of_day"] ?? null));109 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["schedule_time_of_day"] ?? null)); 110 110 yield "; 111 111 var mailpoet_date_storage_format = \"Y-m-d\"; 112 112 var mailpoet_product_categories = "; 113 113 // line 22 114 yield json_encode(($context["product_categories"] ?? null));114 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["product_categories"] ?? null)); 115 115 yield "; 116 116 var mailpoet_products = "; 117 117 // line 23 118 yield json_encode(($context["products"] ?? null));118 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["products"] ?? null)); 119 119 yield "; 120 120 … … 126 126 var mailpoet_woocommerce_automatic_emails = "; 127 127 // line 27 128 yield json_encode(($context["automatic_emails"] ?? null));128 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["automatic_emails"] ?? null)); 129 129 yield "; 130 130 var mailpoet_woocommerce_optin_on_checkout = \""; … … 135 135 var mailpoet_woocommerce_transactional_email_id = "; 136 136 // line 30 137 yield json_encode(($context["woocommerce_transactional_email_id"] ?? null));137 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["woocommerce_transactional_email_id"] ?? null)); 138 138 yield "; 139 139 var mailpoet_display_detailed_stats = "; 140 140 // line 31 141 yield json_encode(($context["display_detailed_stats"] ?? null));141 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["display_detailed_stats"] ?? null)); 142 142 yield "; 143 143 var mailpoet_user_locale = '"; … … 193 193 var mailpoet_authorized_emails = "; 194 194 // line 46 195 yield json_encode(($context["authorized_emails"] ?? null));195 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["authorized_emails"] ?? null)); 196 196 yield "; 197 197 var mailpoet_verified_sender_domains = "; 198 198 // line 47 199 yield json_encode(($context["verified_sender_domains"] ?? null));199 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["verified_sender_domains"] ?? null)); 200 200 yield "; 201 201 var mailpoet_partially_verified_sender_domains = "; 202 202 // line 48 203 yield json_encode(($context["partially_verified_sender_domains"] ?? null));203 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["partially_verified_sender_domains"] ?? null)); 204 204 yield "; 205 205 var mailpoet_all_sender_domains = "; 206 206 // line 49 207 yield json_encode(($context["all_sender_domains"] ?? null));207 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["all_sender_domains"] ?? null)); 208 208 yield "; 209 209 var mailpoet_sender_restrictions = "; 210 210 // line 50 211 yield json_encode(($context["sender_restrictions"] ?? null));211 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["sender_restrictions"] ?? null)); 212 212 yield "; 213 213 var mailpoet_block_email_editor_enabled = "; 214 214 // line 51 215 yield json_encode(($context["block_email_editor_enabled"] ?? null));215 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["block_email_editor_enabled"] ?? null)); 216 216 yield "; 217 217 "; … … 224 224 var corrupt_newsletters = "; 225 225 // line 55 226 yield json_encode(($context["corrupt_newsletters"] ?? null));226 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["corrupt_newsletters"] ?? null)); 227 227 yield "; 228 228 var mailpoet_legacy_automatic_emails_count = "; … … 232 232 var mailpoet_legacy_automatic_emails_notice_dismissed = "; 233 233 // line 57 234 yield json_encode(($context["legacy_automatic_emails_notice_dismissed"] ?? null));234 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["legacy_automatic_emails_notice_dismissed"] ?? null)); 235 235 yield "; 236 236 -
mailpoet/trunk/generated/twig/da/da91af5545e742a5191e1adfba550a85e3f08dc8b14c5ee04cdc9bdec6ccb7b1.php
r3292560 r3386266 76 76 var mailpoet_segments = "; 77 77 // line 18 78 yield json_encode(($context["segments"] ?? null));78 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["segments"] ?? null)); 79 79 yield "; 80 80 var mailpoet_form_template_selection_url = … … 91 91 var mailpoet_display_nps_poll = "; 92 92 // line 24 93 yield json_encode(($context["display_nps_survey"] ?? null));93 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["display_nps_survey"] ?? null)); 94 94 yield "; 95 95 … … 101 101 var mailpoet_current_wp_user = "; 102 102 // line 28 103 yield json_encode(($context["current_wp_user"] ?? null));103 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["current_wp_user"] ?? null)); 104 104 yield "; 105 105 var mailpoet_current_wp_user_firstname = '"; -
mailpoet/trunk/generated/twig/e8/e8f34663cc49d1f0815e6d624e5e2a152275ac7e3e8c1ac167a8a3b1d922c1af.php
r3234919 r3386266 78 78 var admin_email = "; 79 79 // line 9 80 yield json_encode(($context["admin_email"] ?? null));80 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["admin_email"] ?? null)); 81 81 yield "; 82 82 var hide_mailpoet_beacon = true; 83 83 var mailpoet_show_customers_import = "; 84 84 // line 11 85 yield json_encode(($context["show_customers_import"] ?? null));85 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["show_customers_import"] ?? null)); 86 86 yield "; 87 87 var mailpoet_account_url = '"; … … 91 91 var mailpoet_settings = "; 92 92 // line 13 93 yield json_encode(($context["settings"] ?? null));93 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["settings"] ?? null)); 94 94 yield "; 95 95 var mailpoet_premium_key_valid = "; 96 96 // line 14 97 yield json_encode(($context["premium_key_valid"] ?? null));97 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["premium_key_valid"] ?? null)); 98 98 yield "; 99 99 var mailpoet_mss_key_valid = "; 100 100 // line 15 101 yield json_encode(($context["mss_key_valid"] ?? null));101 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["mss_key_valid"] ?? null)); 102 102 yield "; 103 103 var wizard_has_tracking_settings = "; 104 104 // line 16 105 yield json_encode(($context["has_tracking_settings"] ?? null));105 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["has_tracking_settings"] ?? null)); 106 106 yield "; 107 107 var mailpoet_welcome_wizard_current_step = "; 108 108 // line 17 109 yield json_encode(($context["welcome_wizard_current_step"] ?? null));109 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["welcome_wizard_current_step"] ?? null)); 110 110 yield "; 111 111 </script> -
mailpoet/trunk/generated/twig/ed/ed83f1d012a4620973154ed50cf15a673fc794edcbd184156b4b8a002feb8950.php
r3234919 r3386266 63 63 var mailpoet_show_customers_import = "; 64 64 // line 7 65 yield json_encode(($context["show_customers_import"] ?? null));65 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["show_customers_import"] ?? null)); 66 66 yield "; 67 67 var finish_wizard_url = '"; -
mailpoet/trunk/generated/twig/f8/f81228294abb4d565e0deea863de36712b0926420bf8d1edf6e72504f68d1567.php
r3104044 r3386266 61 61 // line 11 62 62 yield " var mailpoet_templates = "; 63 yield json_encode(($context["templates"] ?? null));63 yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["templates"] ?? null)); 64 64 yield "; 65 65 var mailpoet_form_edit_url = -
mailpoet/trunk/lang/mailpoet.pot
r3381899 r3386266 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: MailPoet 5.16. 2\n"5 "Project-Id-Version: MailPoet 5.16.3\n" 6 6 "Report-Msgid-Bugs-To: http://support.mailpoet.com/\n" 7 7 "Last-Translator: MailPoet i18n (https://www.transifex.com/organization/wysija)\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2025-10-2 1T08:34:10+00:00\n"12 "POT-Creation-Date: 2025-10-27T14:05:14+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.10.0\n" … … 1104 1104 1105 1105 #: views/form/iframe.html:46 1106 #: lib/PostEditorBlocks/SubscriptionFormBlock.php:6 01106 #: lib/PostEditorBlocks/SubscriptionFormBlock.php:61 1107 1107 msgid "MailPoet Subscription Form" 1108 1108 msgstr "" … … 10960 10960 10961 10961 #: lib/Form/Widget.php:157 10962 #: lib/PostEditorBlocks/SubscriptionFormBlock.php:6 110962 #: lib/PostEditorBlocks/SubscriptionFormBlock.php:62 10963 10963 msgid "inactive" 10964 10964 msgstr "" 10965 10965 10966 10966 #: lib/Form/Widget.php:164 10967 #: lib/PostEditorBlocks/SubscriptionFormBlock.php: 5910967 #: lib/PostEditorBlocks/SubscriptionFormBlock.php:60 10968 10968 msgid "Create a new form" 10969 10969 msgstr "" … … 11223 11223 msgstr "" 11224 11224 11225 #: lib/PostEditorBlocks/SubscriptionFormBlock.php:5 811225 #: lib/PostEditorBlocks/SubscriptionFormBlock.php:59 11226 11226 msgid "Select a MailPoet form" 11227 11227 msgstr "" -
mailpoet/trunk/lib/Automation/Engine/Utils/Json.php
r2983550 r3386266 11 11 class Json { 12 12 public static function encode(array $value): string { 13 $json = json_encode((object)$value, JSON_ UNESCAPED_SLASHES | JSON_PRESERVE_ZERO_FRACTION);13 $json = json_encode((object)$value, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES | JSON_PRESERVE_ZERO_FRACTION); 14 14 $error = json_last_error(); 15 15 if ($error || $json === false) { -
mailpoet/trunk/lib/EmailEditor/Integrations/MailPoet/EditorPageRenderer.php
r3362479 r3386266 132 132 wp_add_inline_script( 133 133 'wp-blocks', 134 sprintf('wp.blocks.setCategories( %s );', wp_json_encode(get_block_categories($post) )),134 sprintf('wp.blocks.setCategories( %s );', wp_json_encode(get_block_categories($post), JSON_HEX_TAG | JSON_UNESCAPED_SLASHES)), 135 135 'after' 136 136 ); … … 140 140 wp_add_inline_script( 141 141 'wp-blocks', 142 sprintf('wp.blocks.unstable__bootstrapServerSideBlockDefinitions( %s );', wp_json_encode(get_block_editor_server_block_settings() ))142 sprintf('wp.blocks.unstable__bootstrapServerSideBlockDefinitions( %s );', wp_json_encode(get_block_editor_server_block_settings(), JSON_HEX_TAG | JSON_UNESCAPED_SLASHES)) 143 143 ); 144 144 … … 213 213 ]; 214 214 $this->wp->wpAddInlineScript('email_editor_integration', implode('', array_map(function ($key) use ($inline_script_data) { 215 return sprintf("var %s=%s;", $key, wp_json_encode($inline_script_data[$key] ));215 return sprintf("var %s=%s;", $key, wp_json_encode($inline_script_data[$key], JSON_HEX_TAG | JSON_UNESCAPED_SLASHES)); 216 216 }, array_keys($inline_script_data))), 'before'); 217 217 … … 263 263 sprintf( 264 264 'wp.apiFetch.use( wp.apiFetch.createPreloadingMiddleware( %s ) );', 265 wp_json_encode($preloadData )265 wp_json_encode($preloadData, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES) 266 266 ) 267 267 ); … … 279 279 window.mailpoet_analytics_enabled = true; 280 280 window.mailpoet_analytics_public_id = '<?php echo esc_js($publicId); ?>'; 281 window.mailpoet_analytics_new_public_id = <?php echo wp_json_encode($isPublicIdNew ); ?>;282 window.mailpoet_3rd_party_libs_enabled = <?php echo wp_json_encode($libs3rdPartyEnabled ); ?>;281 window.mailpoet_analytics_new_public_id = <?php echo wp_json_encode($isPublicIdNew, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES); ?>; 282 window.mailpoet_3rd_party_libs_enabled = <?php echo wp_json_encode($libs3rdPartyEnabled, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES); ?>; 283 283 window.mailpoet_version = '<?php echo esc_js(MAILPOET_VERSION); ?>'; 284 284 window.mailpoet_premium_version = '<?php echo esc_js((defined('MAILPOET_PREMIUM_VERSION')) ? MAILPOET_PREMIUM_VERSION : ''); ?>'; -
mailpoet/trunk/lib/PostEditorBlocks/SubscriptionFormBlock.php
r3058232 r3386266 53 53 }, 54 54 $forms 55 ) 55 ), 56 JSON_HEX_TAG | JSON_UNESCAPED_SLASHES 56 57 ); 57 58 ?> -
mailpoet/trunk/lib/Twig/Functions.php
r3366518 r3386266 78 78 new TwigFunction( 79 79 'json_encode', 80 'json_encode',80 [$this, 'jsonEncode'], 81 81 ['is_safe' => ['all']] 82 82 ), … … 408 408 return esc_url($this->getWooCommerceHelper()->wcGetPagePermalink($page)); 409 409 } 410 411 /** 412 * Safely encodes data to JSON for use in script tags. 413 * Always includes JSON_HEX_TAG to prevent breaking out of script context 414 * and JSON_UNESCAPED_SLASHES for better readability. 415 * 416 * @param mixed $data 417 * @param int $flags 418 * @return string|false 419 */ 420 public function jsonEncode($data, $flags = 0) { 421 $flags = $flags | JSON_HEX_TAG | JSON_UNESCAPED_SLASHES; 422 return json_encode($data, $flags); 423 } 410 424 } -
mailpoet/trunk/lib/Validator/Schema.php
r2705533 r3386266 66 66 67 67 public function toString(): string { 68 $json = json_encode($this->schema, JSON_ UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_PRESERVE_ZERO_FRACTION);68 $json = json_encode($this->schema, JSON_HEX_TAG | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_PRESERVE_ZERO_FRACTION); 69 69 $error = json_last_error(); 70 70 if ($error || $json === false) { -
mailpoet/trunk/mailpoet.php
r3381899 r3386266 6 6 /* 7 7 * Plugin Name: MailPoet 8 * Version: 5.16. 28 * Version: 5.16.3 9 9 * Plugin URI: https://www.mailpoet.com 10 10 * Description: Create and send newsletters, post notifications and welcome emails from your WordPress. … … 15 15 * Domain Path: /lang 16 16 * 17 * WC requires at least: 10. 118 * WC tested up to: 10. 217 * WC requires at least: 10.2 18 * WC tested up to: 10.3 19 19 * 20 20 * @package WordPress … … 24 24 25 25 $mailpoetPlugin = [ 26 'version' => '5.16. 2',26 'version' => '5.16.3', 27 27 'filename' => __FILE__, 28 28 'path' => dirname(__FILE__), … … 32 32 33 33 const MAILPOET_MINIMUM_REQUIRED_WP_VERSION = '6.7'; // L-1 version, not the latest 34 const MAILPOET_MINIMUM_REQUIRED_WOOCOMMERCE_VERSION = '10. 1'; // L-1 version, not the latest34 const MAILPOET_MINIMUM_REQUIRED_WOOCOMMERCE_VERSION = '10.2'; // L-1 version, not the latest 35 35 36 36 -
mailpoet/trunk/readme.txt
r3381899 r3386266 4 4 Requires at least: 6.7 5 5 Tested up to: 6.8 6 Stable tag: 5.16. 26 Stable tag: 5.16.3 7 7 Requires PHP: 7.4 8 8 License: GPLv3 … … 228 228 == Changelog == 229 229 230 = 5.16.2 - 2025-10-20 = 231 * Added: setting to customize built-in CAPTCHA page. 230 = 5.16.3 - 2025-10-27 = 231 * Updated: Bump the minimum required WooCommerce version to 10.2 and tested up to version to 10.3; 232 * Improved: Improved JSON encoding for data output in script tags to prevent HTML parsing issues. 232 233 233 234 [See the changelog for all versions.](https://github.com/mailpoet/mailpoet/blob/trunk/mailpoet/changelog.txt) -
mailpoet/trunk/vendor/composer/installed.php
r3381899 r3386266 6 6 'pretty_version' => 'dev-trunk', 7 7 'version' => 'dev-trunk', 8 'reference' => ' 0602f5fb61dc5544b88cc24749ca36fa876b320e',8 'reference' => 'b91d1b9ca2781ad56a6dd2ce8ec5cbdbb43ab149', 9 9 'type' => 'library', 10 10 'install_path' => __DIR__ . '/../../', … … 16 16 'pretty_version' => 'dev-trunk', 17 17 'version' => 'dev-trunk', 18 'reference' => ' 0602f5fb61dc5544b88cc24749ca36fa876b320e',18 'reference' => 'b91d1b9ca2781ad56a6dd2ce8ec5cbdbb43ab149', 19 19 'type' => 'library', 20 20 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.