PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/controllers/FrmEmailStylesController.php +4 -6 6.27 → trunk View file →
@@ -134,16 +134,16 @@
134 134 Praesent in risus velit. Donec molestie tincidunt ex sed consequat. Ut ornare fringilla fringilla.',
135 135 ),
136 136 );
137 137
138 - if ( 'plain' !== $style_key ) {
139 - $content = self::get_test_rich_text_email_content( $style_key, $table_rows );
140 - } else {
138 + if ( 'plain' === $style_key ) {
141 139 $content = '';
142 140
143 141 foreach ( $table_rows as $row ) {
144 142 $content .= $row['label'] . ': ' . $row['value'] . "\r\n";
145 143 }
144 + } else {
145 + $content = self::get_test_rich_text_email_content( $style_key, $table_rows );
146 146 }//end if
147 147
148 148 return $content;
149 149 }
@@ -271,11 +271,9 @@
271 271 if ( ! $style_key ) {
272 272 die( esc_html( $not_exist_msg ) );
273 273 }
274 274
275 - $styles = self::get_email_styles();
276 -
277 - if ( ! isset( $styles[ $style_key ] ) ) {
275 + if ( ! isset( self::get_email_styles()[ $style_key ] ) ) {
278 276 die( esc_html( $not_exist_msg ) );
279 277 }
280 278
281 279 $style_key = FrmAppHelper::get_param( 'style_key', '', 'sanitize_text_field' );