Skip to content

Commit 94fcb22

Browse files
committed
Fix PHP warning form submission.
1 parent f2cd533 commit 94fcb22

File tree

4 files changed

+14
-18
lines changed

4 files changed

+14
-18
lines changed

includes/blocks/mailchimp-form-field/block.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,7 @@
2222
"html": false,
2323
"reusable": true,
2424
"lock": false,
25-
"spacing": {
26-
"padding": true,
27-
"margin": true
28-
},
29-
"typography": {
25+
"typography": {
3026
"fontSize": true,
3127
"lineHeight": true
3228
}

includes/blocks/mailchimp-form-field/edit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ export const BlockEdit = (props) => {
320320
const isRequired = mailchimpListData?.[listId]?.[tag]?.required || false;
321321

322322
return (
323-
<div {...blockProps}>
323+
<div {...blockProps} style={{ color: 'inherit' }}>
324324
<MailchimpFormField {...props} />
325325
{isPublic && !isRequired && (
326326
<BlockControls>

includes/blocks/mailchimp/block.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,21 @@
2929
"color": {
3030
"background": true,
3131
"text": true,
32-
"border": true
32+
"border": true
3333
},
34-
"typography": {
35-
"fontSize": true,
36-
"lineHeight": true,
37-
"textAlign": true
38-
}
34+
"typography": {
35+
"fontSize": true,
36+
"lineHeight": true,
37+
"textAlign": true
38+
}
3939
},
40-
"allowedBlocks": [
40+
"allowedBlocks": [
4141
"mailchimp/mailchimp-form-field"
4242
],
43-
"providesContext": {
44-
"mailchimp/list_id": "list_id",
45-
"mailchimp/show_required_indicator": "show_required_indicator"
46-
},
43+
"providesContext": {
44+
"mailchimp/list_id": "list_id",
45+
"mailchimp/show_required_indicator": "show_required_indicator"
46+
},
4747
"textdomain": "mailchimp",
4848
"editorScript": "file:./index.js",
4949
"render": "file:./markup.php",

includes/class-mailchimp-block-form-submission.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ protected function prepare_groups_body( $interest_groups ) {
286286
protected function set_all_groups_to_false( $interest_groups ) {
287287
$groups = new StdClass();
288288

289-
foreach ( $interest_groups as $$interest_group ) {
289+
foreach ( $interest_groups as $interest_group ) {
290290
if ( 'hidden' !== $interest_group['type'] ) {
291291
foreach ( $interest_group['groups'] as $group ) {
292292
$id = $group['id'];

0 commit comments

Comments
 (0)