File tree Expand file tree Collapse file tree 3 files changed +0
-35
lines changed Expand file tree Collapse file tree 3 files changed +0
-35
lines changed Original file line number Diff line number Diff line change @@ -265,5 +265,4 @@ th.mailchimp-connect {
265
265
266
266
.mailchimp-sf-oauth-connect-wrapper {
267
267
display : flex;
268
- text-align : right;
269
268
}
Original file line number Diff line number Diff line change @@ -241,24 +241,6 @@ function mailchimp_sf_add_pages() {
241
241
function mailchimp_sf_request_handler () {
242
242
if ( isset ( $ _POST ['mcsf_action ' ] ) ) {
243
243
switch ( $ _POST ['mcsf_action ' ] ) {
244
- case 'login ' :
245
- $ key = isset ( $ _POST ['mailchimp_sf_api_key ' ] ) ? trim ( sanitize_text_field ( wp_unslash ( $ _POST ['mailchimp_sf_api_key ' ] ) ) ) : '' ;
246
-
247
- try {
248
- $ api = new MailChimp_API ( $ key );
249
- } catch ( Exception $ e ) {
250
- $ msg = '<strong class="error_msg"> ' . $ e ->getMessage () . '</strong> ' ;
251
- mailchimp_sf_global_msg ( $ msg );
252
- break ;
253
- }
254
-
255
- $ key = mailchimp_sf_verify_key ( $ api );
256
- if ( is_wp_error ( $ key ) ) {
257
- $ msg = '<strong class="error_msg"> ' . $ key ->get_error_message () . '</strong> ' ;
258
- mailchimp_sf_global_msg ( $ msg );
259
- }
260
-
261
- break ;
262
244
case 'logout ' :
263
245
// Check capability & Verify nonce
264
246
if (
Original file line number Diff line number Diff line change 57
57
);
58
58
?>
59
59
</p>
60
- <div class="mc-section"> <!-- TODO:remove this -->
61
- <table class="widefat mc-widefat mc-api">
62
- <form method="POST" action="">
63
- <tr valign="top">
64
- <th scope="row" class="mailchimp-connect"><?php esc_html_e ( 'Connect to Mailchimp ' , 'mailchimp ' ); ?> </th>
65
- <td>
66
- <input type="hidden" name="mcsf_action" value="login"/>
67
- <input type="password" name="mailchimp_sf_api_key" placeholder="<?php esc_attr_e ( 'API Key ' , 'mailchimp ' ); ?> ">
68
- </td>
69
- <td>
70
- <input class="button mc-submit" type="submit" value="<?php esc_attr_e ( 'Connect ' , 'mailchimp ' ); ?> ">
71
- </td>
72
- </tr>
73
- </form>
74
- </table>
75
- </div>
76
60
<div class="mc-section mailchimp-sf-oauth-section">
77
61
<table class="widefat mc-widefat mc-api">
78
62
<tr valign="top">
You can’t perform that action at this time.
0 commit comments