Changeset 3491781
- Timestamp:
- 03/26/2026 12:34:04 PM (7 days ago)
- Location:
- mailchimp-for-wp
- Files:
-
- 12 edited
- 1 copied
-
tags/4.12.1 (copied) (copied from mailchimp-for-wp/trunk)
-
tags/4.12.1/CHANGELOG.md (modified) (2 diffs)
-
tags/4.12.1/includes/forms/class-form-element.php (modified) (1 diff)
-
tags/4.12.1/includes/forms/class-form-manager.php (modified) (1 diff)
-
tags/4.12.1/includes/forms/class-form.php (modified) (1 diff)
-
tags/4.12.1/mailchimp-for-wp.php (modified) (2 diffs)
-
tags/4.12.1/readme.txt (modified) (4 diffs)
-
trunk/CHANGELOG.md (modified) (2 diffs)
-
trunk/includes/forms/class-form-element.php (modified) (1 diff)
-
trunk/includes/forms/class-form-manager.php (modified) (1 diff)
-
trunk/includes/forms/class-form.php (modified) (1 diff)
-
trunk/mailchimp-for-wp.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mailchimp-for-wp/tags/4.12.1/CHANGELOG.md
r3477825 r3491781 1 1 Changelog 2 2 ========= 3 4 5 #### 4.12.1 - Mar 26, 2026 6 7 - Supply a custom capability type to `register_post_type` for the `mc4wp-form` post type. 8 - Limit allowed HTML in the various form messages to a safe subset on load (versus only on update). 9 3 10 4 11 #### 4.12.0 - Mar 9, 2026 … … 16 23 - Add autocomplete attribute to form fields. 17 24 - Enable live updates in Gravity Forms editor. 18 19 25 20 26 -
mailchimp-for-wp/tags/4.12.1/includes/forms/class-form-element.php
r3477825 r3491781 113 113 } 114 114 115 $html = sprintf('<div class="mc4wp-alert mc4wp-%s" role="alert"><p>%s</p></div>', esc_attr($notice->type), $notice->text); 116 return $html; 115 return sprintf('<div class="mc4wp-alert mc4wp-%s" role="alert"><p>%s</p></div>', esc_attr($notice->type), $notice->text); 117 116 } 118 117 -
mailchimp-for-wp/tags/4.12.1/includes/forms/class-form-manager.php
r3227253 r3491781 110 110 ], 111 111 'public' => false, 112 'capability_type' => 'mc4wp-form', 113 'map_meta_cap' => true, 112 114 ] 113 115 ); -
mailchimp-for-wp/tags/4.12.1/includes/forms/class-form.php
r3477825 r3491781 292 292 } 293 293 294 // restrict allowed HTML in messages to a safe subset 295 $allowed_attributes = array_fill_keys([ 'class', 'id', 'style', 'href', 'target', 'src', 'width', 'height', 'alt' ], true); 296 $allowed_html = array_fill_keys([ 'strong', 'b', 'em', 'i', 'a', 'br', 'span', 'img' ], $allowed_attributes); 297 294 298 foreach ($messages as $key => $message_text) { 295 299 // overwrite default text with text in form meta. 296 300 if (isset($post_meta[ 'text_' . $key ][0])) { 297 $message_text = $post_meta[ 'text_' . $key ][0];301 $message_text = wp_kses($post_meta[ 'text_' . $key ][0], $allowed_html); 298 302 } 299 303 -
mailchimp-for-wp/tags/4.12.1/mailchimp-for-wp.php
r3477825 r3491781 5 5 Plugin URI: https://www.mc4wp.com/#utm_source=wp-plugin&utm_medium=mailchimp-for-wp&utm_campaign=plugins-page 6 6 Description: Mailchimp for WordPress by ibericode. Adds various highly effective sign-up methods to your site. 7 Version: 4.12. 07 Version: 4.12.1 8 8 Author: ibericode 9 9 Author URI: https://www.ibericode.com/ … … 46 46 47 47 // bootstrap the core plugin 48 define('MC4WP_VERSION', '4.12. 0');48 define('MC4WP_VERSION', '4.12.1'); 49 49 define('MC4WP_PLUGIN_DIR', __DIR__); 50 50 define('MC4WP_PLUGIN_FILE', __FILE__); -
mailchimp-for-wp/tags/4.12.1/readme.txt
r3477825 r3491781 5 5 Requires at least: 4.6 6 6 Tested up to: 6.9.1 7 Stable tag: 4.12. 07 Stable tag: 4.12.1 8 8 License: GPL-3.0-or-later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 190 190 191 191 192 193 #### 4.12.1 - Mar 26, 2026 194 195 - Supply a custom capability type to `register_post_type` for the `mc4wp-form` post type. 196 - Limit allowed HTML in the various form messages to a safe subset on load (versus only on update). 197 198 192 199 #### 4.12.0 - Mar 9, 2026 193 200 … … 204 211 - Add autocomplete attribute to form fields. 205 212 - Enable live updates in Gravity Forms editor. 206 207 213 208 214 … … 1130 1136 1131 1137 - Obfuscate all email addresses in debug log. Thanks [Sauli Lepola](https://twitter.com/SJLfi). 1132 - Ask for confirmation before disabling double opt-in, which we do not recommend. 1133 - Allow vertical resizing of debug log. 1134 - Failsafe against including JavaScript file twice. 1135 - No longer wrapping CF7 checkbox in paragraph tags. 1136 1137 **Additions** 1138 1139 - Added `mc4wp_form_api_error` action ... 1138 - ... 1140 1139 1141 1140 == Upgrade Notice == -
mailchimp-for-wp/trunk/CHANGELOG.md
r3477825 r3491781 1 1 Changelog 2 2 ========= 3 4 5 #### 4.12.1 - Mar 26, 2026 6 7 - Supply a custom capability type to `register_post_type` for the `mc4wp-form` post type. 8 - Limit allowed HTML in the various form messages to a safe subset on load (versus only on update). 9 3 10 4 11 #### 4.12.0 - Mar 9, 2026 … … 16 23 - Add autocomplete attribute to form fields. 17 24 - Enable live updates in Gravity Forms editor. 18 19 25 20 26 -
mailchimp-for-wp/trunk/includes/forms/class-form-element.php
r3477825 r3491781 113 113 } 114 114 115 $html = sprintf('<div class="mc4wp-alert mc4wp-%s" role="alert"><p>%s</p></div>', esc_attr($notice->type), $notice->text); 116 return $html; 115 return sprintf('<div class="mc4wp-alert mc4wp-%s" role="alert"><p>%s</p></div>', esc_attr($notice->type), $notice->text); 117 116 } 118 117 -
mailchimp-for-wp/trunk/includes/forms/class-form-manager.php
r3227253 r3491781 110 110 ], 111 111 'public' => false, 112 'capability_type' => 'mc4wp-form', 113 'map_meta_cap' => true, 112 114 ] 113 115 ); -
mailchimp-for-wp/trunk/includes/forms/class-form.php
r3477825 r3491781 292 292 } 293 293 294 // restrict allowed HTML in messages to a safe subset 295 $allowed_attributes = array_fill_keys([ 'class', 'id', 'style', 'href', 'target', 'src', 'width', 'height', 'alt' ], true); 296 $allowed_html = array_fill_keys([ 'strong', 'b', 'em', 'i', 'a', 'br', 'span', 'img' ], $allowed_attributes); 297 294 298 foreach ($messages as $key => $message_text) { 295 299 // overwrite default text with text in form meta. 296 300 if (isset($post_meta[ 'text_' . $key ][0])) { 297 $message_text = $post_meta[ 'text_' . $key ][0];301 $message_text = wp_kses($post_meta[ 'text_' . $key ][0], $allowed_html); 298 302 } 299 303 -
mailchimp-for-wp/trunk/mailchimp-for-wp.php
r3477825 r3491781 5 5 Plugin URI: https://www.mc4wp.com/#utm_source=wp-plugin&utm_medium=mailchimp-for-wp&utm_campaign=plugins-page 6 6 Description: Mailchimp for WordPress by ibericode. Adds various highly effective sign-up methods to your site. 7 Version: 4.12. 07 Version: 4.12.1 8 8 Author: ibericode 9 9 Author URI: https://www.ibericode.com/ … … 46 46 47 47 // bootstrap the core plugin 48 define('MC4WP_VERSION', '4.12. 0');48 define('MC4WP_VERSION', '4.12.1'); 49 49 define('MC4WP_PLUGIN_DIR', __DIR__); 50 50 define('MC4WP_PLUGIN_FILE', __FILE__); -
mailchimp-for-wp/trunk/readme.txt
r3477825 r3491781 5 5 Requires at least: 4.6 6 6 Tested up to: 6.9.1 7 Stable tag: 4.12. 07 Stable tag: 4.12.1 8 8 License: GPL-3.0-or-later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 190 190 191 191 192 193 #### 4.12.1 - Mar 26, 2026 194 195 - Supply a custom capability type to `register_post_type` for the `mc4wp-form` post type. 196 - Limit allowed HTML in the various form messages to a safe subset on load (versus only on update). 197 198 192 199 #### 4.12.0 - Mar 9, 2026 193 200 … … 204 211 - Add autocomplete attribute to form fields. 205 212 - Enable live updates in Gravity Forms editor. 206 207 213 208 214 … … 1130 1136 1131 1137 - Obfuscate all email addresses in debug log. Thanks [Sauli Lepola](https://twitter.com/SJLfi). 1132 - Ask for confirmation before disabling double opt-in, which we do not recommend. 1133 - Allow vertical resizing of debug log. 1134 - Failsafe against including JavaScript file twice. 1135 - No longer wrapping CF7 checkbox in paragraph tags. 1136 1137 **Additions** 1138 1139 - Added `mc4wp_form_api_error` action ... 1138 - ... 1140 1139 1141 1140 == Upgrade Notice ==
Note: See TracChangeset
for help on using the changeset viewer.