Plugin Directory

Changeset 3386266


Ignore:
Timestamp:
10/29/2025 08:41:33 AM (5 months ago)
Author:
costasovo
Message:

Release 5.16.3

Location:
mailpoet/trunk
Files:
28 edited

Legend:

Unmodified
Added
Removed
  • mailpoet/trunk/generated/twig/11/11d3f6de05938fc53f6b51a30553350ab288ef245cc1007bdfbcde41b50bd1cf.php

    r3339642 r3386266  
    901901    var mailpoet_product_categories = ";
    902902        // line 725
    903         yield json_encode(($context["product_categories"] ?? null));
     903        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["product_categories"] ?? null));
    904904        yield ";
    905905    var mailpoet_products = ";
    906906        // line 726
    907         yield json_encode(($context["products"] ?? null));
     907        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["products"] ?? null));
    908908        yield ";
    909909    var mailpoet_original_template_body = ";
    910910        // line 727
    911         yield json_encode(($context["original_template_body"] ?? null));
     911        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["original_template_body"] ?? null));
    912912        yield ";
    913913
     
    23932393          contents: ";
    23942394        // 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));
    23962396        yield ",
    23972397        },
     
    24002400            discountType: ";
    24012401        // 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));
    24032403        yield ",
    24042404            code: ";
    24052405        // 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));
    24072407        yield ",
    24082408            amountMax: ";
    24092409        // 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));
    24112411        yield ",
    24122412            amount: 10,
     
    24322432      shortcodes: ";
    24332433        // line 1848
    2434         yield json_encode(($context["shortcodes"] ?? null));
     2434        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["shortcodes"] ?? null));
    24352435        yield ",
    24362436      sidepanelWidth: '331px',
     
    24892489          fontColor: ";
    24902490            // 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));
    24922492            yield ",
    24932493        },
     
    24952495          fontColor: ";
    24962496            // 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));
    24982498            yield ",
    24992499        },
     
    25012501          fontColor: ";
    25022502            // 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));
    25042504            yield ",
    25052505        },
     
    25072507          fontColor: ";
    25082508            // 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));
    25102510            yield ",
    25112511        },
     
    25132513          fontColor: ";
    25142514            // 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));
    25162516            yield ",
    25172517        },
     
    25192519          backgroundColor: ";
    25202520            // 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));
    25222522            yield ",
    25232523        },
     
    25252525          backgroundColor: ";
    25262526            // 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));
    25282528            yield ",
    25292529        },
     
    25312531          brandingColor: ";
    25322532            // 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));
    25342534            yield ",
    25352535          headingFontColor: ";
    25362536            // 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));
    25382538            yield ",
    25392539          isSavedWithUpdatedStyles: true,
     
    25522552        // line 1904
    25532553        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));
    25552555        yield ",
    25562556    };
  • mailpoet/trunk/generated/twig/2f/2fdaf34bbda3125546cd6c64c0391b56b819f1dc3be4d0692dbfcc750c52ba1c.php

    r3104044 r3386266  
    5757  var mailpoet_locale_full = ";
    5858        // line 7
    59         yield json_encode(($context["locale_full"] ?? null));
     59        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["locale_full"] ?? null));
    6060        yield ";
    6161  var mailpoet_automation_api = ";
    6262        // line 8
    63         yield json_encode(($context["api"] ?? null));
     63        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["api"] ?? null));
    6464        yield ";
    6565  var mailpoet_json_api = ";
    6666        // line 9
    67         yield json_encode(($context["jsonapi"] ?? null));
     67        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["jsonapi"] ?? null));
    6868        yield ";
    6969  var mailpoet_segments = ";
    7070        // line 10
    71         yield json_encode(($context["segments"] ?? null));
     71        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["segments"] ?? null));
    7272        yield ";
    7373  var mailpoet_automation_registry = ";
    7474        // line 11
    75         yield json_encode(($context["registry"] ?? null));
     75        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["registry"] ?? null));
    7676        yield ";
    7777  var mailpoet_automation_context = ";
    7878        // line 12
    79         yield json_encode(($context["context"] ?? null));
     79        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["context"] ?? null));
    8080        yield ";
    8181  var mailpoet_automation = ";
    8282        // 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"));
    8484        yield ";
    8585</script>
  • mailpoet/trunk/generated/twig/32/326afb5c4a139f2d408eebdd2be85b805c8b5c3ccbf74d019dd788528c925a24.php

    r3104044 r3386266  
    5858        // line 8
    5959        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));
    6161        yield ";
    6262    var mailpoet_welcome_wizard_current_step = ";
    6363        // 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));
    6565        yield ";
    6666  ";
  • mailpoet/trunk/generated/twig/39/39da32f9fe8a5caa16807fdb58b8d6bb1943456eb890fa93c71599fef75864bd.php

    r3104044 r3386266  
    6666    var mailpoet_custom_fields = ";
    6767        // line 9
    68         yield json_encode(($context["custom_fields"] ?? null));
     68        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["custom_fields"] ?? null));
    6969        yield ";
    7070    var mailpoet_static_segments_list = ";
    7171        // line 10
    72         yield json_encode(($context["static_segments_list"] ?? null));
     72        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["static_segments_list"] ?? null));
    7373        yield ";
    7474    var wordpress_editable_roles_list = ";
    7575        // 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));
    7777        yield ";
    7878    var mailpoet_newsletters_list = ";
    7979        // line 12
    80         yield json_encode(($context["newsletters_list"] ?? null));
     80        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["newsletters_list"] ?? null));
    8181        yield ";
    8282    var mailpoet_product_attributes = ";
    8383        // line 13
    84         yield json_encode(($context["product_attributes"] ?? null));
     84        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["product_attributes"] ?? null));
    8585        yield ";
    8686    var mailpoet_local_product_attributes = ";
    8787        // line 14
    88         yield json_encode(($context["local_product_attributes"] ?? null));
     88        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["local_product_attributes"] ?? null));
    8989        yield ";
    9090    var mailpoet_product_categories = ";
    9191        // line 15
    92         yield json_encode(($context["product_categories"] ?? null));
     92        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["product_categories"] ?? null));
    9393        yield ";
    9494    var mailpoet_product_tags = ";
    9595        // line 16
    96         yield json_encode(($context["product_tags"] ?? null));
     96        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["product_tags"] ?? null));
    9797        yield ";
    9898    var mailpoet_products = ";
    9999        // line 17
    100         yield json_encode(($context["products"] ?? null));
     100        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["products"] ?? null));
    101101        yield ";
    102102    var mailpoet_membership_plans = ";
    103103        // line 18
    104         yield json_encode(($context["membership_plans"] ?? null));
     104        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["membership_plans"] ?? null));
    105105        yield ";
    106106    var mailpoet_subscription_products = ";
    107107        // line 19
    108         yield json_encode(($context["subscription_products"] ?? null));
     108        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["subscription_products"] ?? null));
    109109        yield ";
    110110    var mailpoet_can_use_woocommerce_memberships = ";
    111111        // 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));
    113113        yield ";
    114114    var mailpoet_can_use_woocommerce_subscriptions = ";
    115115        // 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));
    117117        yield ";
    118118    var mailpoet_woocommerce_currency_symbol = ";
    119119        // line 22
    120         yield json_encode(($context["woocommerce_currency_symbol"] ?? null));
     120        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["woocommerce_currency_symbol"] ?? null));
    121121        yield ";
    122122    var mailpoet_woocommerce_countries = ";
    123123        // line 23
    124         yield json_encode(($context["woocommerce_countries"] ?? null));
     124        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["woocommerce_countries"] ?? null));
    125125        yield ";
    126126    var mailpoet_woocommerce_payment_methods = ";
    127127        // line 24
    128         yield json_encode(($context["woocommerce_payment_methods"] ?? null));
     128        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["woocommerce_payment_methods"] ?? null));
    129129        yield ";
    130130    var mailpoet_woocommerce_shipping_methods = ";
    131131        // line 25
    132         yield json_encode(($context["woocommerce_shipping_methods"] ?? null));
     132        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["woocommerce_shipping_methods"] ?? null));
    133133        yield ";
    134134    var mailpoet_signup_forms = ";
    135135        // line 26
    136         yield json_encode(($context["signup_forms"] ?? null));
     136        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["signup_forms"] ?? null));
    137137        yield ";
    138138    var mailpoet_automations = ";
    139139        // line 27
    140         yield json_encode(($context["automations"] ?? null));
     140        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["automations"] ?? null));
    141141        yield ";
    142142  </script>
  • mailpoet/trunk/generated/twig/5d/5d0a911176e50085fa0f645dafa33f6bb54942f4cc0c7d027b1f8e108f984df4.php

    r3366518 r3386266  
    8282  var mailpoet_date_offset = ";
    8383        // line 39
    84         yield json_encode(get_option("gmt_offset"));
     84        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(get_option("gmt_offset"));
    8585        yield ";
    8686  var mailpoet_version = \"";
     
    9898  var mailpoet_urls = ";
    9999        // line 43
    100         yield json_encode(($context["urls"] ?? null));
     100        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["urls"] ?? null));
    101101        yield ";
    102102  var mailpoet_premium_version = ";
    103103        // 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());
    105105        yield ";
    106106  var mailpoet_main_page_slug =   ";
    107107        // line 45
    108         yield json_encode(($context["main_page"] ?? null));
     108        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["main_page"] ?? null));
    109109        yield ";
    110110  var mailpoet_3rd_party_libs_enabled = ";
     
    118118  var mailpoet_analytics_public_id = ";
    119119        // 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());
    121121        yield ";
    122122  var mailpoet_analytics_new_public_id = ";
     
    126126  var mailpoet_free_domains = ";
    127127        // 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());
    129129        yield ";
    130130  var mailpoet_woocommerce_active = ";
    131131        // 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());
    133133        yield ";
    134134  var mailpoet_woocommerce_email_improvements_enabled = ";
    135135        // 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());
    137137        yield ";
    138138  var mailpoet_woocommerce_bookings_active = ";
    139139        // 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));
    141141        yield ";
    142142  var mailpoet_woocommerce_subscriptions_active = ";
    143143        // 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));
    145145        yield ";
    146146  var mailpoet_woocommerce_store_config = ";
    147147        // line 55
    148         yield json_encode(($context["woocommerce_store_config"] ?? null));
     148        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["woocommerce_store_config"] ?? null));
    149149        yield ";
    150150  // RFC 5322 standard; http://emailregex.com/ combined with https://google.github.io/closure-library/api/goog.format.EmailAddress.html#isValid
     
    152152  var mailpoet_feature_flags = ";
    153153        // line 58
    154         yield json_encode(($context["feature_flags"] ?? null));
     154        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["feature_flags"] ?? null));
    155155        yield ";
    156156  var mailpoet_referral_id = ";
    157157        // line 59
    158         yield json_encode(($context["referral_id"] ?? null));
     158        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["referral_id"] ?? null));
    159159        yield ";
    160160  var mailpoet_wp_segment_state = ";
    161161        // line 60
    162         yield json_encode(($context["wp_segment_state"] ?? null));
     162        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["wp_segment_state"] ?? null));
    163163        yield ";
    164164  var mailpoet_mta_method = '";
     
    168168  var mailpoet_tracking_config = ";
    169169        // line 62
    170         yield json_encode(($context["tracking_config"] ?? null));
     170        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["tracking_config"] ?? null));
    171171        yield ";
    172172  var mailpoet_is_new_user = ";
    173173        // 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));
    175175        yield ";
    176176  var mailpoet_installed_days_ago = ";
    177177        // line 64
    178         yield json_encode(($context["installed_days_ago"] ?? null));
     178        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["installed_days_ago"] ?? null));
    179179        yield ";
    180180  var mailpoet_send_transactional_emails = ";
    181181        // line 65
    182         yield json_encode(($context["send_transactional_emails"] ?? null));
     182        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["send_transactional_emails"] ?? null));
    183183        yield ";
    184184  var mailpoet_transactional_emails_opt_in_notice_dismissed = ";
    185185        // 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));
    187187        yield ";
    188188  var mailpoet_deactivate_subscriber_after_inactive_days = ";
    189189        // 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));
    191191        yield ";
    192192  var mailpoet_woocommerce_version = ";
    193193        // 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());
    195195        yield ";
    196196  var mailpoet_track_wizard_loaded_via_woocommerce = ";
    197197        // 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));
    199199        yield ";
    200200  var mailpoet_track_wizard_loaded_via_woocommerce_marketing_dashboard = ";
    201201        // 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));
    203203        yield ";
    204204  var mailpoet_mail_function_enabled = '";
     
    212212  var mailpoet_is_dotcom = ";
    213213        // 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());
    215215        yield ";
    216216  var mailpoet_cron_trigger_method = ";
    217217        // line 74
    218         yield json_encode(($context["cron_trigger_method"] ?? null));
     218        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["cron_trigger_method"] ?? null));
    219219        yield ";
    220220  var mailpoet_use_block_email_editor_for_automation_emails = ";
    221221        // 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));
    223223        yield ";
    224224
     
    243243  var mailpoet_premium_link = ";
    244244        // line 83
    245         yield json_encode(($context["link_premium"] ?? null));
     245        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["link_premium"] ?? null));
    246246        yield ";
    247247  var mailpoet_premium_plugin_installed = ";
    248248        // line 84
    249         yield json_encode(($context["premium_plugin_installed"] ?? null));
     249        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["premium_plugin_installed"] ?? null));
    250250        yield ";
    251251  var mailpoet_premium_active = ";
    252252        // line 85
    253         yield json_encode(($context["premium_plugin_active"] ?? null));
     253        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["premium_plugin_active"] ?? null));
    254254        yield ";
    255255  var mailpoet_premium_plugin_download_url = ";
    256256        // 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));
    258258        yield ";
    259259  var mailpoet_premium_plugin_activation_url = ";
    260260        // 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));
    262262        yield ";
    263263  var mailpoet_has_valid_api_key = ";
    264264        // 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));
    266266        yield ";
    267267  var mailpoet_has_valid_premium_key = ";
    268268        // 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));
    270270        yield ";
    271271  var mailpoet_has_premium_support = ";
    272272        // line 90
    273         yield json_encode(($context["has_premium_support"] ?? null));
     273        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["has_premium_support"] ?? null));
    274274        yield ";
    275275  var has_mss_key_specified = ";
    276276        // 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));
    278278        yield ";
    279279  var mailpoet_mss_key_invalid = ";
    280280        // line 92
    281         yield json_encode(($context["mss_key_invalid"] ?? null));
     281        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["mss_key_invalid"] ?? null));
    282282        yield ";
    283283  var mailpoet_mss_key_valid = ";
    284284        // line 93
    285         yield json_encode(($context["mss_key_valid"] ?? null));
     285        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["mss_key_valid"] ?? null));
    286286        yield ";
    287287  var mailpoet_mss_key_pending_approval = '";
     
    291291  var mailpoet_mss_active = ";
    292292        // line 95
    293         yield json_encode(($context["mss_active"] ?? null));
     293        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["mss_active"] ?? null));
    294294        yield ";
    295295  var mailpoet_plugin_partial_key = '";
     
    303303  var mailpoet_subscribers_counts_cache_created_at = ";
    304304        // 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));
    306306        yield ";
    307307  var mailpoet_subscribers_limit = ";
     
    311311  var mailpoet_subscribers_limit_reached = ";
    312312        // line 100
    313         yield json_encode(($context["subscribers_limit_reached"] ?? null));
     313        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["subscribers_limit_reached"] ?? null));
    314314        yield ";
    315315  var mailpoet_email_volume_limit = ";
    316316        // line 101
    317         yield json_encode(($context["email_volume_limit"] ?? null));
     317        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["email_volume_limit"] ?? null));
    318318        yield ";
    319319  var mailpoet_email_volume_limit_reached = ";
    320320        // 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));
    322322        yield ";
    323323  var mailpoet_capabilities = ";
    324324        // line 103
    325         yield json_encode(($context["capabilities"] ?? null));
     325        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["capabilities"] ?? null));
    326326        yield ";
    327327  var mailpoet_tier = ";
    328328        // line 104
    329         yield json_encode(($context["tier"] ?? null));
     329        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["tier"] ?? null));
    330330        yield ";
    331331  var mailpoet_cdn_url = ";
    332332        // 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(""));
    334334        yield ";
    335335  var mailpoet_tags = ";
    336336        // line 106
    337         yield json_encode(($context["tags"] ?? null));
     337        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["tags"] ?? null));
    338338        yield ";
    339339
  • mailpoet/trunk/generated/twig/73/73f3a8c1cc9a65ca3413f4ea3ff2718b2d5edfe9fb53239c729b3503e745621a.php

    r3104044 r3386266  
    138138      var MailPoetForm = ";
    139139        // line 72
    140         yield json_encode(($context["mailpoet_form"] ?? null));
     140        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["mailpoet_form"] ?? null));
    141141        yield ";
    142142    </script>
  • mailpoet/trunk/generated/twig/75/75e8ff9ca041db525f3957e2c3d891df76415c982d665a3645418c035784be2c.php

    r3150736 r3386266  
    5858    var systemInfoData = ";
    5959        // line 8
    60         yield json_encode(($context["systemInfoData"] ?? null));
     60        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["systemInfoData"] ?? null));
    6161        yield ";
    6262    var systemStatusData = ";
    6363        // line 9
    64         yield json_encode(($context["systemStatusData"] ?? null));
     64        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["systemStatusData"] ?? null));
    6565        yield ";
    6666    var actionSchedulerData = ";
    6767        // line 10
    68         yield json_encode(($context["actionSchedulerData"] ?? null));
     68        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["actionSchedulerData"] ?? null));
    6969        yield ";
    7070  </script>
  • mailpoet/trunk/generated/twig/94/94feef30e518f71dae774ce3b21122b280d35f06cb7d39a98f5d0937e631ee72.php

    r3104044 r3386266  
    5757  var mailpoet_locale_full = ";
    5858        // line 7
    59         yield json_encode(($context["locale_full"] ?? null));
     59        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["locale_full"] ?? null));
    6060        yield ";
    6161  var mailpoet_automation_api = ";
    6262        // line 8
    63         yield json_encode(($context["api"] ?? null));
     63        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["api"] ?? null));
    6464        yield ";
    6565  var mailpoet_automation_count = ";
    6666        // line 9
    67         yield json_encode(($context["automationCount"] ?? null));
     67        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["automationCount"] ?? null));
    6868        yield ";
    6969  var mailpoet_legacy_automation_count = ";
    7070        // line 10
    71         yield json_encode(($context["legacyAutomationCount"] ?? null));
     71        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["legacyAutomationCount"] ?? null));
    7272        yield ";
    7373  var mailpoet_automation_templates = ";
    7474        // line 11
    75         yield json_encode(($context["templates"] ?? null));
     75        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["templates"] ?? null));
    7676        yield ";
    7777  var mailpoet_automation_template_categories = ";
    7878        // line 12
    79         yield json_encode(($context["template_categories"] ?? null));
     79        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["template_categories"] ?? null));
    8080        yield ";
    8181  var mailpoet_automation_registry = ";
    8282        // line 13
    83         yield json_encode(($context["registry"] ?? null));
     83        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["registry"] ?? null));
    8484        yield ";
    8585  var mailpoet_automation_context = ";
    8686        // line 14
    87         yield json_encode(($context["context"] ?? null));
     87        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["context"] ?? null));
    8888        yield ";
    8989  var mailpoet_segments = ";
    9090        // line 15
    91         yield json_encode(($context["segments"] ?? null));
     91        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["segments"] ?? null));
    9292        yield ";
    9393  var mailpoet_roles = ";
    9494        // line 16
    95         yield json_encode(($context["roles"] ?? null));
     95        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["roles"] ?? null));
    9696        yield ";
    9797  var mailpoet_woocommerce_automatic_emails = ";
    9898        // line 17
    99         yield json_encode(($context["automatic_emails"] ?? null));
     99        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["automatic_emails"] ?? null));
    100100        yield ";
    101101  var mailpoet_legacy_automations_notice_dismissed = ";
    102102        // 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));
    104104        yield ";
    105105</script>
  • mailpoet/trunk/generated/twig/99/997d183eebcab0f97b233d325fdc85c11ab603462c24004960dbf17428d73ffb.php

    r3104044 r3386266  
    5757  var mailpoet_locale_full = ";
    5858        // line 7
    59         yield json_encode(($context["locale_full"] ?? null));
     59        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["locale_full"] ?? null));
    6060        yield ";
    6161  var mailpoet_automation_api = ";
    6262        // line 8
    63         yield json_encode(($context["api"] ?? null));
     63        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["api"] ?? null));
    6464        yield ";
    6565  var mailpoet_json_api = ";
    6666        // line 9
    67         yield json_encode(($context["jsonapi"] ?? null));
     67        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["jsonapi"] ?? null));
    6868        yield ";
    6969  var mailpoet_automation_registry = ";
    7070        // line 10
    71         yield json_encode(($context["registry"] ?? null));
     71        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["registry"] ?? null));
    7272        yield ";
    7373  var mailpoet_automation_context = ";
    7474        // line 11
    75         yield json_encode(($context["context"] ?? null));
     75        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["context"] ?? null));
    7676        yield ";
    7777  var mailpoet_automation = ";
    7878        // 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"));
    8080        yield ";
    8181</script>
  • mailpoet/trunk/generated/twig/9e/9e950b56ab1fe2a7d168f308dfb252c679285fd70feda7ec60848e83a681f491.php

    r3104044 r3386266  
    5959        // line 9
    6060        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));
    6262        yield ";
    6363    var mailpoet_homepage_data = ";
    6464        // line 10
    65         yield json_encode(($context["homepage"] ?? null));
     65        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["homepage"] ?? null));
    6666        yield ";
    6767  ";
  • mailpoet/trunk/generated/twig/a2/a2b5fdaae4fbc89e9831739c7a4679fdaf0545d2bd26cd08ee7fa4779384bd6c.php

    r3284564 r3386266  
    6262        // line 12
    6363        yield "      var mailpoet_logs = ";
    64         yield json_encode(($context["logs"] ?? null));
     64        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["logs"] ?? null));
    6565        yield ";
    6666      var mailpoet_logs_default_from = '";
  • mailpoet/trunk/generated/twig/a8/a8a69edd67b2c2be7dbac60cc1daf2a16b6db17e734b5d6eab50a5f18fb1dc20.php

    r3104044 r3386266  
    5757  var mailpoet_locale_full = ";
    5858        // line 7
    59         yield json_encode(($context["locale_full"] ?? null));
     59        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["locale_full"] ?? null));
    6060        yield ";
    6161  var mailpoet_automation_api = ";
    6262        // line 8
    63         yield json_encode(($context["api"] ?? null));
     63        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["api"] ?? null));
    6464        yield ";
    6565  var mailpoet_automation_templates = ";
    6666        // line 9
    67         yield json_encode(($context["templates"] ?? null));
     67        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["templates"] ?? null));
    6868        yield ";
    6969  var mailpoet_automation_template_categories = ";
    7070        // line 10
    71         yield json_encode(($context["template_categories"] ?? null));
     71        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["template_categories"] ?? null));
    7272        yield ";
    7373  var mailpoet_automation_registry = ";
    7474        // line 11
    75         yield json_encode(($context["registry"] ?? null));
     75        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["registry"] ?? null));
    7676        yield ";
    7777  var mailpoet_automation_context = ";
    7878        // line 12
    79         yield json_encode(($context["context"] ?? null));
     79        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["context"] ?? null));
    8080        yield ";
    8181</script>
  • mailpoet/trunk/generated/twig/ac/ac17e21d1704c48c95099807d725545ad5e86914c1a5f715c63f05aa98cca8b0.php

    r3104044 r3386266  
    5858        // line 8
    5959        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));
    6161        yield ";
    6262      var mailpoet_verified_sender_domains = ";
    6363        // line 9
    64         yield json_encode(($context["verified_sender_domains"] ?? null));
     64        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["verified_sender_domains"] ?? null));
    6565        yield ";
    6666      var mailpoet_partially_verified_sender_domains = ";
    6767        // 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));
    6969        yield ";
    7070      var mailpoet_all_sender_domains = ";
    7171        // line 11
    72         yield json_encode(($context["all_sender_domains"] ?? null));
     72        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["all_sender_domains"] ?? null));
    7373        yield ";
    7474      var mailpoet_sender_restrictions = ";
    7575        // line 12
    76         yield json_encode(($context["sender_restrictions"] ?? null));
     76        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["sender_restrictions"] ?? null));
    7777        yield ";
    7878      var mailpoet_members_plugin_active = ";
    7979        // 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));
    8181        yield ";
    8282      var mailpoet_settings = ";
    8383        // line 14
    84         yield json_encode(($context["settings"] ?? null));
     84        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["settings"] ?? null));
    8585        yield ";
    8686      var mailpoet_segments = ";
    8787        // line 15
    88         yield json_encode(($context["segments"] ?? null));
     88        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["segments"] ?? null));
    8989        yield ";
    9090      var mailpoet_pages = ";
    9191        // line 16
    92         yield json_encode(($context["pages"] ?? null));
     92        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["pages"] ?? null));
    9393        yield ";
    9494      var mailpoet_mss_key_valid = ";
    9595        // line 17
    96         yield json_encode(($context["mss_key_valid"] ?? null));
     96        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["mss_key_valid"] ?? null));
    9797        yield ";
    9898      var mailpoet_premium_key_valid = ";
    9999        // line 18
    100         yield json_encode(($context["premium_key_valid"] ?? null));
     100        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["premium_key_valid"] ?? null));
    101101        yield ";
    102102      var mailpoet_paths = ";
    103103        // line 19
    104         yield json_encode(($context["paths"] ?? null));
     104        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["paths"] ?? null));
    105105        yield ";
    106106      var mailpoet_built_in_captcha_supported = ";
    107107        // 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));
    109109        yield ";
    110110      var mailpoet_free_plan_url = \"";
     
    118118      var mailpoet_hosts = ";
    119119        // line 23
    120         yield json_encode(($context["hosts"] ?? null));
     120        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["hosts"] ?? null));
    121121        yield ";
    122122      var mailpoet_current_site_title = ";
    123123        // line 24
    124         yield json_encode(($context["current_site_title"] ?? null));
     124        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["current_site_title"] ?? null));
    125125        yield ";
    126126    ";
  • mailpoet/trunk/generated/twig/bf/bfefa6e80602777f3d773ee8a7d946d30d6fb43e7efc99cf4368d90e077b7041.php

    r3292560 r3386266  
    6262    var mailpoet_segments = ";
    6363        // line 8
    64         yield json_encode(($context["segments"] ?? null));
     64        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["segments"] ?? null));
    6565        yield ";
    6666    var mailpoet_custom_fields = ";
    6767        // line 9
    68         yield json_encode(($context["custom_fields"] ?? null));
     68        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["custom_fields"] ?? null));
    6969        yield ";
    7070    var mailpoet_month_names = ";
    7171        // line 10
    72         yield json_encode(($context["month_names"] ?? null));
     72        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["month_names"] ?? null));
    7373        yield ";
    7474    var mailpoet_date_formats = ";
    7575        // line 11
    76         yield json_encode(($context["date_formats"] ?? null));
     76        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["date_formats"] ?? null));
    7777        yield ";
    7878  </script>
  • mailpoet/trunk/generated/twig/d4/d46a8b1adbdc3d9d7e990e9e5a5c7c9aefb7d2ce2e79328b83e141b7d8b01459.php

    r3222343 r3386266  
    7171      var mailpoet_segments = ";
    7272        // line 11
    73         yield json_encode(($context["segments"] ?? null));
     73        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["segments"] ?? null));
    7474        yield ";
    7575      var mailpoet_show_congratulate_after_first_newsletter = ";
     
    7979      var mailpoet_current_wp_user = ";
    8080        // line 13
    81         yield json_encode(($context["current_wp_user"] ?? null));
     81        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["current_wp_user"] ?? null));
    8282        yield ";
    8383      var mailpoet_current_wp_user_firstname = '";
     
    8787      var mailpoet_lists = ";
    8888        // line 15
    89         yield json_encode(($context["lists"] ?? null));
     89        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["lists"] ?? null));
    9090        yield ";
    9191      var mailpoet_roles = ";
    9292        // line 16
    93         yield json_encode(($context["roles"] ?? null));
     93        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["roles"] ?? null));
    9494        yield ";
    9595      var mailpoet_current_date = ";
    9696        // line 17
    97         yield json_encode(($context["current_date"] ?? null));
     97        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["current_date"] ?? null));
    9898        yield ";
    9999      var mailpoet_tomorrow_date = ";
    100100        // line 18
    101         yield json_encode(($context["tomorrow_date"] ?? null));
     101        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["tomorrow_date"] ?? null));
    102102        yield ";
    103103      var mailpoet_current_date_time = ";
    104104        // line 19
    105         yield json_encode(($context["current_date_time"] ?? null));
     105        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["current_date_time"] ?? null));
    106106        yield ";
    107107      var mailpoet_schedule_time_of_day = ";
    108108        // 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));
    110110        yield ";
    111111      var mailpoet_date_storage_format = \"Y-m-d\";
    112112      var mailpoet_product_categories = ";
    113113        // line 22
    114         yield json_encode(($context["product_categories"] ?? null));
     114        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["product_categories"] ?? null));
    115115        yield ";
    116116      var mailpoet_products = ";
    117117        // line 23
    118         yield json_encode(($context["products"] ?? null));
     118        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["products"] ?? null));
    119119        yield ";
    120120
     
    126126      var mailpoet_woocommerce_automatic_emails = ";
    127127        // line 27
    128         yield json_encode(($context["automatic_emails"] ?? null));
     128        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["automatic_emails"] ?? null));
    129129        yield ";
    130130      var mailpoet_woocommerce_optin_on_checkout = \"";
     
    135135      var mailpoet_woocommerce_transactional_email_id = ";
    136136        // 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));
    138138        yield ";
    139139      var mailpoet_display_detailed_stats = ";
    140140        // line 31
    141         yield json_encode(($context["display_detailed_stats"] ?? null));
     141        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["display_detailed_stats"] ?? null));
    142142        yield ";
    143143      var mailpoet_user_locale = '";
     
    193193      var mailpoet_authorized_emails = ";
    194194        // line 46
    195         yield json_encode(($context["authorized_emails"] ?? null));
     195        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["authorized_emails"] ?? null));
    196196        yield ";
    197197      var mailpoet_verified_sender_domains = ";
    198198        // line 47
    199         yield json_encode(($context["verified_sender_domains"] ?? null));
     199        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["verified_sender_domains"] ?? null));
    200200        yield ";
    201201      var mailpoet_partially_verified_sender_domains = ";
    202202        // 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));
    204204        yield ";
    205205      var mailpoet_all_sender_domains = ";
    206206        // line 49
    207         yield json_encode(($context["all_sender_domains"] ?? null));
     207        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["all_sender_domains"] ?? null));
    208208        yield ";
    209209      var mailpoet_sender_restrictions = ";
    210210        // line 50
    211         yield json_encode(($context["sender_restrictions"] ?? null));
     211        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["sender_restrictions"] ?? null));
    212212        yield ";
    213213      var mailpoet_block_email_editor_enabled = ";
    214214        // 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));
    216216        yield ";
    217217    ";
     
    224224    var corrupt_newsletters = ";
    225225        // line 55
    226         yield json_encode(($context["corrupt_newsletters"] ?? null));
     226        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["corrupt_newsletters"] ?? null));
    227227        yield ";
    228228    var mailpoet_legacy_automatic_emails_count = ";
     
    232232    var mailpoet_legacy_automatic_emails_notice_dismissed = ";
    233233        // 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));
    235235        yield ";
    236236
  • mailpoet/trunk/generated/twig/da/da91af5545e742a5191e1adfba550a85e3f08dc8b14c5ee04cdc9bdec6ccb7b1.php

    r3292560 r3386266  
    7676    var mailpoet_segments = ";
    7777        // line 18
    78         yield json_encode(($context["segments"] ?? null));
     78        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["segments"] ?? null));
    7979        yield ";
    8080    var mailpoet_form_template_selection_url =
     
    9191    var mailpoet_display_nps_poll = ";
    9292        // line 24
    93         yield json_encode(($context["display_nps_survey"] ?? null));
     93        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["display_nps_survey"] ?? null));
    9494        yield ";
    9595
     
    101101      var mailpoet_current_wp_user = ";
    102102            // line 28
    103             yield json_encode(($context["current_wp_user"] ?? null));
     103            yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["current_wp_user"] ?? null));
    104104            yield ";
    105105      var mailpoet_current_wp_user_firstname = '";
  • mailpoet/trunk/generated/twig/e8/e8f34663cc49d1f0815e6d624e5e2a152275ac7e3e8c1ac167a8a3b1d922c1af.php

    r3234919 r3386266  
    7878  var admin_email = ";
    7979        // line 9
    80         yield json_encode(($context["admin_email"] ?? null));
     80        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["admin_email"] ?? null));
    8181        yield ";
    8282  var hide_mailpoet_beacon = true;
    8383  var mailpoet_show_customers_import = ";
    8484        // line 11
    85         yield json_encode(($context["show_customers_import"] ?? null));
     85        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["show_customers_import"] ?? null));
    8686        yield ";
    8787  var mailpoet_account_url = '";
     
    9191  var mailpoet_settings = ";
    9292        // line 13
    93         yield json_encode(($context["settings"] ?? null));
     93        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["settings"] ?? null));
    9494        yield ";
    9595  var mailpoet_premium_key_valid = ";
    9696        // line 14
    97         yield json_encode(($context["premium_key_valid"] ?? null));
     97        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["premium_key_valid"] ?? null));
    9898        yield ";
    9999  var mailpoet_mss_key_valid = ";
    100100        // line 15
    101         yield json_encode(($context["mss_key_valid"] ?? null));
     101        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["mss_key_valid"] ?? null));
    102102        yield ";
    103103  var wizard_has_tracking_settings = ";
    104104        // line 16
    105         yield json_encode(($context["has_tracking_settings"] ?? null));
     105        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["has_tracking_settings"] ?? null));
    106106        yield ";
    107107  var mailpoet_welcome_wizard_current_step = ";
    108108        // 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));
    110110        yield ";
    111111</script>
  • mailpoet/trunk/generated/twig/ed/ed83f1d012a4620973154ed50cf15a673fc794edcbd184156b4b8a002feb8950.php

    r3234919 r3386266  
    6363  var mailpoet_show_customers_import = ";
    6464        // line 7
    65         yield json_encode(($context["show_customers_import"] ?? null));
     65        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["show_customers_import"] ?? null));
    6666        yield ";
    6767  var finish_wizard_url = '";
  • mailpoet/trunk/generated/twig/f8/f81228294abb4d565e0deea863de36712b0926420bf8d1edf6e72504f68d1567.php

    r3104044 r3386266  
    6161        // line 11
    6262        yield "  var mailpoet_templates = ";
    63         yield json_encode(($context["templates"] ?? null));
     63        yield $this->extensions['MailPoet\Twig\Functions']->jsonEncode(($context["templates"] ?? null));
    6464        yield ";
    6565  var mailpoet_form_edit_url =
  • mailpoet/trunk/lang/mailpoet.pot

    r3381899 r3386266  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: MailPoet 5.16.2\n"
     5"Project-Id-Version: MailPoet 5.16.3\n"
    66"Report-Msgid-Bugs-To: http://support.mailpoet.com/\n"
    77"Last-Translator: MailPoet i18n (https://www.transifex.com/organization/wysija)\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2025-10-21T08:34:10+00:00\n"
     12"POT-Creation-Date: 2025-10-27T14:05:14+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.10.0\n"
     
    11041104
    11051105#: views/form/iframe.html:46
    1106 #: lib/PostEditorBlocks/SubscriptionFormBlock.php:60
     1106#: lib/PostEditorBlocks/SubscriptionFormBlock.php:61
    11071107msgid "MailPoet Subscription Form"
    11081108msgstr ""
     
    1096010960
    1096110961#: lib/Form/Widget.php:157
    10962 #: lib/PostEditorBlocks/SubscriptionFormBlock.php:61
     10962#: lib/PostEditorBlocks/SubscriptionFormBlock.php:62
    1096310963msgid "inactive"
    1096410964msgstr ""
    1096510965
    1096610966#: lib/Form/Widget.php:164
    10967 #: lib/PostEditorBlocks/SubscriptionFormBlock.php:59
     10967#: lib/PostEditorBlocks/SubscriptionFormBlock.php:60
    1096810968msgid "Create a new form"
    1096910969msgstr ""
     
    1122311223msgstr ""
    1122411224
    11225 #: lib/PostEditorBlocks/SubscriptionFormBlock.php:58
     11225#: lib/PostEditorBlocks/SubscriptionFormBlock.php:59
    1122611226msgid "Select a MailPoet form"
    1122711227msgstr ""
  • mailpoet/trunk/lib/Automation/Engine/Utils/Json.php

    r2983550 r3386266  
    1111class Json {
    1212  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);
    1414    $error = json_last_error();
    1515    if ($error || $json === false) {
  • mailpoet/trunk/lib/EmailEditor/Integrations/MailPoet/EditorPageRenderer.php

    r3362479 r3386266  
    132132    wp_add_inline_script(
    133133      '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)),
    135135      'after'
    136136    );
     
    140140    wp_add_inline_script(
    141141      '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))
    143143    );
    144144
     
    213213    ];
    214214    $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));
    216216    }, array_keys($inline_script_data))), 'before');
    217217
     
    263263      sprintf(
    264264        'wp.apiFetch.use( wp.apiFetch.createPreloadingMiddleware( %s ) );',
    265         wp_json_encode($preloadData)
     265        wp_json_encode($preloadData, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES)
    266266      )
    267267    );
     
    279279        window.mailpoet_analytics_enabled = true;
    280280        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); ?>;
    283283        window.mailpoet_version = '<?php echo esc_js(MAILPOET_VERSION); ?>';
    284284        window.mailpoet_premium_version = '<?php echo esc_js((defined('MAILPOET_PREMIUM_VERSION')) ? MAILPOET_PREMIUM_VERSION : ''); ?>';
  • mailpoet/trunk/lib/PostEditorBlocks/SubscriptionFormBlock.php

    r3058232 r3386266  
    5353          },
    5454          $forms
    55         )
     55        ),
     56        JSON_HEX_TAG | JSON_UNESCAPED_SLASHES
    5657      );
    5758      ?>
  • mailpoet/trunk/lib/Twig/Functions.php

    r3366518 r3386266  
    7878      new TwigFunction(
    7979        'json_encode',
    80         'json_encode',
     80        [$this, 'jsonEncode'],
    8181        ['is_safe' => ['all']]
    8282      ),
     
    408408    return esc_url($this->getWooCommerceHelper()->wcGetPagePermalink($page));
    409409  }
     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  }
    410424}
  • mailpoet/trunk/lib/Validator/Schema.php

    r2705533 r3386266  
    6666
    6767  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);
    6969    $error = json_last_error();
    7070    if ($error || $json === false) {
  • mailpoet/trunk/mailpoet.php

    r3381899 r3386266  
    66/*
    77 * Plugin Name: MailPoet
    8  * Version: 5.16.2
     8 * Version: 5.16.3
    99 * Plugin URI: https://www.mailpoet.com
    1010 * Description: Create and send newsletters, post notifications and welcome emails from your WordPress.
     
    1515 * Domain Path: /lang
    1616 *
    17  * WC requires at least: 10.1
    18  * WC tested up to: 10.2
     17 * WC requires at least: 10.2
     18 * WC tested up to: 10.3
    1919 *
    2020 * @package WordPress
     
    2424
    2525$mailpoetPlugin = [
    26   'version' => '5.16.2',
     26  'version' => '5.16.3',
    2727  'filename' => __FILE__,
    2828  'path' => dirname(__FILE__),
     
    3232
    3333const 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 latest
     34const MAILPOET_MINIMUM_REQUIRED_WOOCOMMERCE_VERSION = '10.2'; // L-1 version, not the latest
    3535
    3636
  • mailpoet/trunk/readme.txt

    r3381899 r3386266  
    44Requires at least: 6.7
    55Tested up to: 6.8
    6 Stable tag: 5.16.2
     6Stable tag: 5.16.3
    77Requires PHP: 7.4
    88License: GPLv3
     
    228228== Changelog ==
    229229
    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.
    232233
    233234[See the changelog for all versions.](https://github.com/mailpoet/mailpoet/blob/trunk/mailpoet/changelog.txt)
  • mailpoet/trunk/vendor/composer/installed.php

    r3381899 r3386266  
    66 'pretty_version' => 'dev-trunk',
    77 'version' => 'dev-trunk',
    8  'reference' => '0602f5fb61dc5544b88cc24749ca36fa876b320e',
     8 'reference' => 'b91d1b9ca2781ad56a6dd2ce8ec5cbdbb43ab149',
    99 'type' => 'library',
    1010 'install_path' => __DIR__ . '/../../',
     
    1616 'pretty_version' => 'dev-trunk',
    1717 'version' => 'dev-trunk',
    18  'reference' => '0602f5fb61dc5544b88cc24749ca36fa876b320e',
     18 'reference' => 'b91d1b9ca2781ad56a6dd2ce8ec5cbdbb43ab149',
    1919 'type' => 'library',
    2020 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.