| @@ -4,27 +4,27 @@ | ||
| 4 | 4 | if(isset($_GET['xyz_ihs_msg'])) |
| 5 | 5 | $xyz_ihs_message = $_GET['xyz_ihs_msg']; |
| 6 | 6 | if($xyz_ihs_message == 1){ |
| 7 | 7 | ?> |
| 8 | - <div class="xyz_system_notice_area_style1" id="xyz_system_notice_area"> | |
| 8 | + <div class="xyz_ihs_system_notice_area_style1" id="xyz_ihs_system_notice_area"> | |
| 9 | 9 | Thank you for the suggestion. <span |
| 10 | - id="xyz_system_notice_area_dismiss">Dismiss</span> | |
| 10 | + id="xyz_ihs_system_notice_area_dismiss">Dismiss</span> | |
| 11 | 11 | </div> |
| 12 | 12 | <?php |
| 13 | 13 | } |
| 14 | 14 | else if($xyz_ihs_message == 2){ |
| 15 | 15 | ?> |
| 16 | - <div class="xyz_system_notice_area_style0" id="xyz_system_notice_area"> | |
| 16 | + <div class="xyz_ihs_system_notice_area_style0" id="xyz_ihs_system_notice_area"> | |
| 17 | 17 | wp_mail not able to process the request. <span |
| 18 | - id="xyz_system_notice_area_dismiss">Dismiss</span> | |
| 18 | + id="xyz_ihs_system_notice_area_dismiss">Dismiss</span> | |
| 19 | 19 | </div> |
| 20 | 20 | <?php |
| 21 | 21 | } |
| 22 | 22 | else if($xyz_ihs_message == 3){ |
| 23 | 23 | ?> |
| 24 | - <div class="xyz_system_notice_area_style0" id="xyz_system_notice_area"> | |
| 24 | + <div class="xyz_ihs_system_notice_area_style0" id="xyz_ihs_system_notice_area"> | |
| 25 | 25 | Please suggest a feature. <span |
| 26 | - id="xyz_system_notice_area_dismiss">Dismiss</span> | |
| 26 | + id="xyz_ihs_system_notice_area_dismiss">Dismiss</span> | |
| 27 | 27 | </div> |
| 28 | 28 | <?php |
| 29 | 29 | } |
| 30 | 30 | if (isset($_POST) && isset($_POST['xyz_ihs_send_mail'])) |
| @@ -48,18 +48,18 @@ | ||
| 48 | 48 | $xyz_ihs_mail_subject="INSERT HTML SNIPPET - FEATURE SUGGESTION"; |
| 49 | 49 | $xyz_ihs_headers = array('From: '.$xyz_ihs_admin_username.' <'. $xyz_ihs_sender_email .'>' ,'Content-Type: text/html; charset=UTF-8'); |
| 50 | 50 | $wp_mail_processed=wp_mail( $xyz_ihs_recv_email, $xyz_ihs_mail_subject, $xyz_ihs_feature_content, $xyz_ihs_headers ); |
| 51 | 51 | if ($wp_mail_processed==true){ |
| 52 | - header("Location:".admin_url('admin.php?page=insert-html-snippet-suggest-features&xyz_ihs_msg=1')); | |
| 52 | + wp_safe_redirect(admin_url('admin.php?page=insert-html-snippet-suggest-features&xyz_ihs_msg=1')); | |
| 53 | 53 | exit(); |
| 54 | 54 | } |
| 55 | 55 | else |
| 56 | 56 | { |
| 57 | - header("Location:".admin_url('admin.php?page=insert-html-snippet-suggest-features&xyz_ihs_msg=2'));exit(); | |
| 57 | + wp_safe_redirect(admin_url('admin.php?page=insert-html-snippet-suggest-features&xyz_ihs_msg=2'));exit(); | |
| 58 | 58 | } |
| 59 | 59 | } |
| 60 | 60 | else { |
| 61 | - header("Location:".admin_url('admin.php?page=insert-html-snippet-suggest-features&xyz_ihs_msg=3'));exit(); | |
| 61 | + wp_safe_redirect(admin_url('admin.php?page=insert-html-snippet-suggest-features&xyz_ihs_msg=3'));exit(); | |
| 62 | 62 | } |
| 63 | 63 | }?> |
| 64 | 64 | <form method="post" > |
| 65 | 65 | <?php wp_nonce_field( 'xyz_ihs_suggest_feature_form_nonce' );?> |