Changeset 2424002
- Timestamp:
- 11/23/2020 11:26:56 PM (5 years ago)
- Location:
- wp-email-delivery/trunk
- Files:
-
- 3 edited
-
includes/class-wp-email-delivery-settings.php (modified) (7 diffs)
-
readme.txt (modified) (2 diffs)
-
wp-email-delivery.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-email-delivery/trunk/includes/class-wp-email-delivery-settings.php
r1817806 r2424002 80 80 81 81 foreach ($options as $option) { 82 if ( isset($_POST[$option])) {82 if (!empty($_POST[$option])) { 83 83 // If we registered a callback function to sanitizes the option's 84 84 // value it is where we call it (see register_setting). 85 $option_value = apply_filters('sanitize_option_' . $option _name, $_POST[$option]);85 $option_value = apply_filters('sanitize_option_' . $option, $_POST[$option]); 86 86 // And finally we save our option with the site's options. 87 87 update_site_option($option, $option_value); … … 392 392 private function send_test_email(){ 393 393 $headers = array('Content-type: text/html'); 394 $this->parent->connections->mail( $_POST[ $this->base .'test_email' ], "WP Email Delivery Setup Test", wped_basic_test_email(), $headers, "");394 $this->parent->connections->mail( sanitize_email($_POST[ $this->base .'test_email' ]), "WP Email Delivery Setup Test", wped_basic_test_email(), $headers, ""); 395 395 } 396 396 … … 404 404 // Check posted/selected tab 405 405 $current_section = ''; 406 if ( isset( $_POST['tab'] ) && $_POST['tab']) {407 $current_section = $_POST['tab'];406 if (!empty( $_POST['tab'] )) { 407 $current_section = sanitize_title_with_dashes($_POST['tab']); 408 408 } else { 409 if ( isset( $_GET['tab'] ) && $_GET['tab']) {410 $current_section = $_GET['tab'];409 if ( !empty( $_GET['tab'] ) ) { 410 $current_section = sanitize_title_with_dashes($_GET['tab']); 411 411 } 412 412 } 413 413 414 if( isset( $_POST[ $this->base .'test_email' ] )){414 if(!empty( $_POST[ $this->base .'test_email' ] )){ 415 415 $this->send_test_email(); 416 416 } … … 468 468 } 469 469 $tab = ''; 470 if ( isset( $_GET['tab'] ) && $_GET['tab']) {471 $tab .= $_GET['tab'];470 if ( !empty( $_GET['tab'] ) ) { 471 $tab .= sanitize_title_with_dashes($_GET['tab']); 472 472 } 473 473 … … 482 482 // Set tab class 483 483 $class = 'nav-tab'; 484 if ( ! isset( $_GET['tab'] ) ) {484 if ( empty( $_GET['tab'] ) ) { 485 485 if ( 0 == $c ) { 486 486 $class .= ' nav-tab-active'; … … 489 489 } 490 490 } else { 491 if ( isset( $_GET['tab'] ) && $section == $_GET['tab']) {491 if ( !empty( $_GET['tab'] ) && $section == sanitize_title_with_dashes($_GET['tab']) ) { 492 492 $class .= ' nav-tab-active'; 493 493 $button_text = isset( $data['custom_save'] ) ? $data['custom_save'] : esc_attr( __( 'Save Settings' , 'wp-email-delivery' ) ) ; … … 498 498 // Set tab link 499 499 $tab_link = add_query_arg( array( 'tab' => $section ) ); 500 if ( isset( $_GET['settings-updated'] ) ) {500 if ( !empty( $_GET['settings-updated'] ) ) { 501 501 $tab_link = remove_query_arg( 'settings-updated', $tab_link ); 502 502 } -
wp-email-delivery/trunk/readme.txt
r1817806 r2424002 4 4 Tags: newsletter, newsletters, manager newsletter, newsletter signup, newsletter widget, subscribers, subscription, email marketing, email, emailing, smtp, sendpress, sendgrid, mandrill, mailchimp 5 5 Requires at least: 3.7 6 Tested up to: 4.9.17 Stable tag: 1. 1.2.76 Tested up to: 5.6 7 Stable tag: 1.20.11.23 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 57 57 == Changelog == 58 58 59 = 1.20.11.23 - 2020.11.23 = 60 * Update: code base update for new wordpress versions 61 59 62 = 1.1.2.7 - 2018.2.7 = 60 63 * Update: add sending email override settings -
wp-email-delivery/trunk/wp-email-delivery.php
r1817806 r2424002 7 7 Author URI: https://www.wpemaildelivery.com/ 8 8 Requires at least: 3.7 9 Tested up to: 4.9.110 Version: 1. 1.2.79 Tested up to: 5.6 10 Version: 1.20.11.23 11 11 12 12 Text Domain: wp-email-delivery … … 45 45 */ 46 46 function WPED () { 47 return WP_Email_Delivery::instance( __FILE__, '1. 1.2.7' );47 return WP_Email_Delivery::instance( __FILE__, '1.20.11.23' ); 48 48 } 49 49 WPED();
Note: See TracChangeset
for help on using the changeset viewer.