PluginProbe
YayMail – WooCommerce Email Customizer / 4.4.6
YayMail – WooCommerce Email Customizer v4.4.6
4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 trunk 1.9.6 2.1.4 2.1.5 3.2.2 3.2.6 3.2.7.1 3.2.8.1 3.2.9 3.3 3.3.1 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.4 3.4.1 All 57 releases
← All changes | src/Engine/Backend/SettingsPage.php +6 -5 4.4.4 → 4.4.6 View file →
@@ -38,9 +38,9 @@
38 38 $yaymail_platform = \YayMail\Platform\PlatformRegistry::get( 'yaymail' );
39 39 if ( $yaymail_platform ) {
40 40 $this->yaymail_hook_surfix = $yaymail_platform->hook_suffix();
41 41 }
42 - $wp_platform = \YayMail\Platform\PlatformRegistry::get( 'email-builder' );
42 + $wp_platform = \YayMail\Platform\PlatformRegistry::get( 'yaymagic-email-builder' );
43 43 if ( $wp_platform ) {
44 44 $this->yay_wp_hook_surfix = $wp_platform->hook_suffix();
45 45 }
46 46 add_action( 'admin_enqueue_scripts', [ $this, 'admin_enqueue_scripts' ], 30 );
@@ -190,9 +190,9 @@
190 190 'revision_limit' => RevisionController::YAYMAIL_TEMPLATE_REVISION_LIMIT,
191 191 // Two compiled JS bundles still read global_headers_footers as a single
192 192 // legacy { global_header_elements, global_footer_elements } object rather
193 193 // than the per-language array Localize::get_global_headers_footers()
194 - // returns: (1) the "email-builder" (WP core mail) bundle -- confirmed
194 + // returns: (1) the "yaymagic-email-builder" (WP core mail) bundle -- confirmed
195 195 // byte-identical to the free "yaymail" lite bundle, it never received the
196 196 // multi-language upgrade -- and (2) the "yaymail" lite bundle itself when
197 197 // YAYMAIL_LITE_LEGACY_GHF_SHAPE is set. The paid yaymail-pro /
198 198 // email-customizer-for-woocommerce variants already expect the array.
@@ -202,9 +202,9 @@
202 202 // to an array-expecting bundle breaks it with "global_headers_footers.find
203 203 // is not a function". Keep both conditions -- don't collapse into version
204 204 // checks, they gate an unrelated concern (see YAYWP_HOSTS_CORE above).
205 205 'global_headers_footers' => ( $current_platform && (
206 - 'email-builder' === $current_platform->key()
206 + 'yaymagic-email-builder' === $current_platform->key()
207 207 || ( 'yaymail' === $current_platform->key() && defined( 'YAYMAIL_LITE_LEGACY_GHF_SHAPE' ) && YAYMAIL_LITE_LEGACY_GHF_SHAPE )
208 208 ) )
209 209 ? \YayMail\Models\TemplateModel::get_global_header_and_footer( '', $current_platform->ghf_option_key() )
210 210 : Localize::get_global_headers_footers(
@@ -214,12 +214,12 @@
214 214 'patterns' => PatternService::get_instance()->get_list_data(),
215 215 ],
216 216 'colors' => [
217 217 'default_background_color' => YAYMAIL_COLOR_BACKGROUND_DEFAULT,
218 - 'default_text_link_color' => ( $current_platform && 'email-builder' === $current_platform->key() ) ? YAYMAIL_COLOR_WP_DEFAULT : YAYMAIL_COLOR_WC_DEFAULT,
218 + 'default_text_link_color' => ( $current_platform && 'yaymagic-email-builder' === $current_platform->key() ) ? YAYMAIL_COLOR_WP_DEFAULT : YAYMAIL_COLOR_WC_DEFAULT,
219 219 'default_content_background_color' => YAYMAIL_COLOR_CONTENT_BACKGROUND_DEFAULT,
220 220 'default_content_text_color' => YAYMAIL_COLOR_CONTENT_TEXT_DEFAULT,
221 - 'default_title_color' => ( $current_platform && 'email-builder' === $current_platform->key() ) ? YAYMAIL_COLOR_WP_DEFAULT : YAYMAIL_COLOR_TITLE_DEFAULT,
221 + 'default_title_color' => ( $current_platform && 'yaymagic-email-builder' === $current_platform->key() ) ? YAYMAIL_COLOR_WP_DEFAULT : YAYMAIL_COLOR_TITLE_DEFAULT,
222 222 ],
223 223 'smtp' => [
224 224 'link_detail' => self_admin_url( 'plugin-install.php?tab=plugin-information&plugin=yaysmtp&section=description&TB_iframe=true&width=600&height=800' ),
225 225 'setting' => admin_url( 'admin.php?page=yaysmtp' ),
@@ -237,8 +237,9 @@
237 237 'show_multi_select_notice' => get_option( 'yaymail_show_multi_select_notice', 'yes' ),
238 238 'viewed_new_elements' => ! empty( get_option( 'yaymail_viewed_new_elements', [] ) ) ? get_option( 'yaymail_viewed_new_elements' ) : [],
239 239 'ghf_disallowed_element_types' => yaymail_get_ghf_disallowed_element_types(),
240 240 'platform' => $current_platform ? $current_platform->key() : 'yaymail',
241 + 'version' => yaymail_version(),
241 242 'woocommerce_email_styles' => $this->get_scoped_woocommerce_email_styles(),
242 243 ],
243 244 apply_filters( 'yaymail_additional_localized_variables', [] )
244 245 )