Skip to content

Commit 41acda8

Browse files
get rid of general settings section in favor of field description
1 parent 57c40e1 commit 41acda8

File tree

2 files changed

+2
-36
lines changed

2 files changed

+2
-36
lines changed

includes/views/general-settings.php

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -65,41 +65,7 @@
6565
?>
6666
</td>
6767

68-
<tr valign="top">
69-
<th scope="row"><label><?php echo esc_html__('Procaptcha', 'mailchimp-for-wp'); ?></label></th>
70-
<td>
71-
<?php
72-
if (true === $is_procaptcha_configured) {
73-
?>
74-
<span class="mc4wp-status positive"><?php echo esc_html__('CONFIGURED', 'mailchimp-for-wp'); ?></span>
75-
<?php
76-
} else {
77-
?>
78-
<span class="mc4wp-status neutral"><?php echo esc_html__('NOT CONFIGURED', 'mailchimp-for-wp'); ?></span>
79-
<?php
80-
}
81-
?>
82-
<?php
83-
$procaptcha_settings_url = admin_url('admin.php?page=mailchimp-for-wp-integrations&integration=prosopo-procaptcha');
84-
?>
85-
<p class="description" style="padding:15px;">
86-
<?php
87-
printf(
88-
// translators: %1$s is the opening <a> tag, %2$s is the closing </a> tag, %3$s is the opening <a> tag, %4$s is the closing </a> tag.
89-
esc_html__(
90-
'Click %1$s here %2$s to configure %3$s Procaptcha%4$s, privacy-friendly and GDPR-compliant anti-bot protection.',
91-
'mailchimp-for-wp'
92-
),
93-
'<a href="' . esc_html($procaptcha_settings_url) . '">',
94-
'</a>',
95-
'<a target="_blank" href="https://prosopo.io/">',
96-
'</a>'
97-
);
98-
?>
99-
</p>
100-
</td>
101-
102-
</tr>
68+
</tr>
10369

10470
</table>
10571

integrations/prosopo-procaptcha/class-procaptcha.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ public function maybe_add_async_attribute(string $tag, string $handle, string $s
235235
// for old WP versions.
236236
$tag = str_replace(' type="text/javascript"', '', $tag);
237237

238-
return str_replace(' src', ' type="module" src', $tag);
238+
return str_replace(' src=', ' type="module" src=', $tag);
239239
}
240240

241241
/**

0 commit comments

Comments
 (0)