Changeset 3130316
- Timestamp:
- 08/03/2024 09:55:37 AM (20 months ago)
- Location:
- ws-contact-form
- Files:
-
- 8 added
- 4 edited
- 5 copied
-
tags/1.3.8 (added)
-
tags/1.3.8/README.md (copied) (copied from ws-contact-form/trunk/README.md)
-
tags/1.3.8/admin (added)
-
tags/1.3.8/admin/index.php (added)
-
tags/1.3.8/admin/ws-contact-form-admin.php (added)
-
tags/1.3.8/css (added)
-
tags/1.3.8/css/style.css (added)
-
tags/1.3.8/index.php (copied) (copied from ws-contact-form/trunk/index.php)
-
tags/1.3.8/js (added)
-
tags/1.3.8/js/scripts.js (added)
-
tags/1.3.8/readme.txt (copied) (copied from ws-contact-form/trunk/readme.txt) (2 diffs)
-
tags/1.3.8/uninstall.php (copied) (copied from ws-contact-form/trunk/uninstall.php)
-
tags/1.3.8/ws-contact-form.php (copied) (copied from ws-contact-form/trunk/ws-contact-form.php) (3 diffs)
-
trunk/admin/ws-contact-form-admin.php (modified) (3 diffs)
-
trunk/css/style.css (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/ws-contact-form.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ws-contact-form/tags/1.3.8/readme.txt
r2739061 r3130316 1 1 === WS Contact Form === 2 2 Contributors: silvermuru 3 Tags: contact, contact form, contact form plugin, contact forms, contact us, email, feedback form, feedback forms, form, forms3 Tags: contact, contact form, contact form plugin, contact us, feedback form 4 4 Requires at least: 4.4 5 Tested up to: 6. 0.06 Stable tag: 1.3. 75 Tested up to: 6.6.1 6 Stable tag: 1.3.8 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 38 38 39 39 == Changelog == 40 41 = 1.3.8 = 42 43 * Updated code according to Wordpress security and standards guidelines 44 * Tested with Wordpress 6.6.1 45 * Updated version number 40 46 41 47 = 1.3.7 = -
ws-contact-form/tags/1.3.8/ws-contact-form.php
r2739061 r3130316 4 4 * Plugin URI: https://www.silvermuru.ee/en/wordpress/plugins/ws-contact-form/ 5 5 * Description: Simple contact form for Wordpress 6 * Version: 1.3. 76 * Version: 1.3.8 7 7 * Author: UusWeb.ee 8 8 * Author URI: https://www.wordpressi-kodulehe-tegemine.ee/ 9 * License: GPLv2 or later 9 10 * Text Domain: ws-contact-form 10 11 **/ … … 32 33 ob_start(); 33 34 if (get_option('wscontact-form-title-option') != false) { 34 echo '<h3> ' . get_option('wscontact-form-title-option') . '</h3>';35 echo '<h3> ' . esc_html(get_option('wscontact-form-title-option')) . '</h3>'; 35 36 } 36 37 37 38 $random_form_id = wp_rand(1, 1000); 38 39 ?> 39 <form id="ws_contact_form" class="ws-form-group" data-id="<?php echo $random_form_id; ?>"> 40 <div class="ws-hidden ws-message-response ws-message-successful" id="ws_contact_success"><?php _e( 'Message is sent successfully!', 'ws-contact-form' ); ?></div> 41 <div class="ws-hidden ws-message-response ws-message-error" id="ws_contact_error"><?php _e( 'There is problem with form', 'ws-contact-form' ); ?></div> 42 <input class="ws-form-control" type="text" name="ws_contact_name" id="ws_contact_name" placeholder="<?php _e( 'Name', 'ws-contact-form' ); ?> *"> 43 <input class="ws-form-control" type="text" name="ws_contact_email" id="ws_contact_email" placeholder="<?php _e( 'Email', 'ws-contact-form' ); ?> *"> 44 <textarea class="ws-form-control" name="ws_contact_comment" id="ws_contact_comment" placeholder="<?php _e( 'Content', 'ws-contact-form' ); ?> *"></textarea> 45 <button type="submit" id="ws_send_form"><?php _e( 'Send', 'ws-contact-form' ); ?></button> 40 <form id="ws_contact_form" class="ws-form-group" data-id="<?php echo esc_html($random_form_id); ?>"> 41 <?php wp_nonce_field( 'contact_form_send_control', 'contact_form_send_control_field' ); ?> 42 <div class="ws-hidden ws-message-response ws-message-successful" id="ws_contact_success"><?php esc_html_e( 'Message is sent successfully!', 'ws-contact-form' ); ?></div> 43 <div class="ws-hidden ws-message-response ws-message-error" id="ws_contact_error"><?php esc_html_e( 'There is problem with form', 'ws-contact-form' ); ?></div> 44 <input class="ws-form-control" type="text" name="ws_contact_name" id="ws_contact_name" placeholder="<?php esc_html_e( 'Name', 'ws-contact-form' ); ?> *"> 45 <input class="ws-form-control" type="text" name="ws_contact_email" id="ws_contact_email" placeholder="<?php esc_html_e( 'Email', 'ws-contact-form' ); ?> *"> 46 <textarea class="ws-form-control" name="ws_contact_comment" id="ws_contact_comment" placeholder="<?php esc_html_e( 'Content', 'ws-contact-form' ); ?> *"></textarea> 47 <button type="submit" id="ws_send_form"><?php esc_html_e( 'Send', 'ws-contact-form' ); ?></button> 46 48 </form> 47 49 <?php … … 50 52 51 53 public function ws_contact_form_sript() { 52 wp_register_script( 'ws-contact-form-script', plugin_dir_url(__FILE__) . 'js/scripts.js', array( 'jquery' ), false );54 wp_register_script( 'ws-contact-form-script', plugin_dir_url(__FILE__) . 'js/scripts.js', array( 'jquery' ), true, true ); 53 55 wp_enqueue_script( 'ws-contact-form-script' ); 54 56 } 55 57 56 58 public function ws_contact_form_style() { 57 wp_register_style( 'ws-contact-form-style', plugin_dir_url(__FILE__) . 'css/style.css', true ); 58 wp_enqueue_style( 'ws-contact-form-style' ); 59 global $post; 60 if (has_shortcode($post->post_content, 'ws-contact-form')) { 61 wp_register_style('ws-contact-form-style', plugin_dir_url(__FILE__) . 'css/style.css', true, true); 62 wp_enqueue_style('ws-contact-form-style'); 63 } 59 64 } 60 65 61 66 public function ws_contact_form_sendmail() 62 67 { 63 $ws_cf_sender_name = get_option('wscontact-form-sender-name-option');64 $ws_cf_sender_email = get_option('wscontact-form-sender-email-option');68 $ws_cf_sender_name = esc_attr(get_option('wscontact-form-sender-name-option')); 69 $ws_cf_sender_email = esc_attr(get_option('wscontact-form-sender-email-option')); 65 70 66 $email = $_POST['ws_contact_email']; 67 $headers = "From: " . $ws_cf_sender_name . " <" . get_option('wscontact-form-sender-email-option') . "> \r\n Reply-To: " . $email; 68 $message = $_POST['ws_contact_comment']; 69 $name = $_POST['ws_contact_name']; 71 if ( ! isset( $_POST['contact_form_send_control_field'] ) || ! wp_verify_nonce( $_POST['contact_form_send_control_field'], 'contact_form_send_control' )) { 72 $email = $_POST['ws_contact_email']; 73 $headers = "From: " . $ws_cf_sender_name . " <" . get_option('wscontact-form-sender-email-option') . "> \r\n Reply-To: " . $email; 74 $message = $_POST['ws_contact_comment']; 75 $name = $_POST['ws_contact_name']; 70 76 71 function ws_email_valid($email) { 72 $email_pattern = "/^[a-z\d](\.?[a-z\d_\-]+)*@([a-z\d](\.?[a-z\d\-]+)*\.[a-z]{2,4})$/i"; 73 $result = preg_match( $email_pattern, $email, $match );74 if ( FALSE !== $result && $result > 0 ) 75 {76 return TRUE;77 }78 return FALSE;79 }77 function ws_email_valid($email) 78 { 79 $email_pattern = "/^[a-z\d](\.?[a-z\d_\-]+)*@([a-z\d](\.?[a-z\d\-]+)*\.[a-z]{2,4})$/i"; 80 $result = preg_match($email_pattern, $email, $match); 81 if (FALSE !== $result && $result > 0) { 82 return TRUE; 83 } 84 return FALSE; 85 } 80 86 81 if (isset($name) && ws_email_valid($email) && isset($message)) 82 { 83 $ws_cf_recipient_name = get_option('wscontact-form-recipient-name-option'); 84 $ws_cf_recipient_email = get_option('wscontact-form-recipient-email-option'); 85 $ws_cf_email_title = get_option('wscontact-form-email-title-option'); 86 wp_mail( $ws_cf_recipient_name . " <" . $ws_cf_recipient_email . ">", $ws_cf_email_title, $ws_cf_email_title . ":\r\n " . __( 'Name', 'ws-contact-form' ) . ": " . $name . " \r\n " . __( 'Email', 'ws-contact-form' ) . ": " . $email . " \r\n " . __( 'Content', 'ws-contact-form' ) . ": ". $message, $headers); 87 echo 'OK'; 88 } 89 else { 90 echo 'ERROR'; 91 } 87 if (isset($name) && ws_email_valid($email) && isset($message)) { 88 $ws_cf_recipient_name = esc_attr(get_option('wscontact-form-recipient-name-option')); 89 $ws_cf_recipient_email = esc_attr(get_option('wscontact-form-recipient-email-option')); 90 $ws_cf_email_title = esc_attr(get_option('wscontact-form-email-title-option')); 91 wp_mail($ws_cf_recipient_name . " <" . $ws_cf_recipient_email . ">", $ws_cf_email_title, $ws_cf_email_title . ":\r\n " . __('Name', 'ws-contact-form') . ": " . $name . " \r\n " . __('Email', 'ws-contact-form') . ": " . $email . " \r\n " . __('Content', 'ws-contact-form') . ": " . $message, $headers); 92 echo 'OK'; 93 } else { 94 echo 'ERROR'; 95 } 96 } 97 else { 98 echo 'ERROR'; 99 } 92 100 93 101 die(); -
ws-contact-form/trunk/admin/ws-contact-form-admin.php
r1557087 r3130316 28 28 ?> 29 29 <div class="wrap"> 30 <h2><?php _e( 'WS Contact Form Settings', 'ws-contact-form' ); ?></h2>30 <h2><?php esc_attr_e( 'WS Contact Form Settings', 'ws-contact-form' ); ?></h2> 31 31 32 32 <form method="post" action="options.php"> … … 34 34 <table class="form-table"> 35 35 <tr valign="top"> 36 <th scope="row"><?php echo _e( 'Form title', 'ws-contact-form' ); ?></th>36 <th scope="row"><?php echo esc_attr_e( 'Form title', 'ws-contact-form' ); ?></th> 37 37 <td> 38 <input class="regular-text" type="text" name="wscontact-form-title-option" value="<?php echo get_option('wscontact-form-title-option'); ?>" />38 <input class="regular-text" type="text" name="wscontact-form-title-option" value="<?php echo esc_attr(get_option('wscontact-form-title-option')); ?>" /> 39 39 </td> 40 40 </tr> 41 41 <tr valign="top"> 42 <th scope="row"><?php echo _e( 'Email title', 'ws-contact-form' ); ?></th>42 <th scope="row"><?php echo esc_attr_e( 'Email title', 'ws-contact-form' ); ?></th> 43 43 <td> 44 <input class="regular-text" type="text" name="wscontact-form-email-title-option" value="<?php echo get_option('wscontact-form-email-title-option'); ?>" />44 <input class="regular-text" type="text" name="wscontact-form-email-title-option" value="<?php echo esc_attr(get_option('wscontact-form-email-title-option')); ?>" /> 45 45 </td> 46 46 </tr> 47 47 <tr valign="top"> 48 <th scope="row"><?php echo _e( 'Sender name', 'ws-contact-form' ); ?></th>48 <th scope="row"><?php echo esc_attr_e( 'Sender name', 'ws-contact-form' ); ?></th> 49 49 <td> 50 <input class="regular-text" type="text" name="wscontact-form-sender-name-option" value="<?php echo get_option('wscontact-form-sender-name-option'); ?>" />50 <input class="regular-text" type="text" name="wscontact-form-sender-name-option" value="<?php echo esc_attr(get_option('wscontact-form-sender-name-option')); ?>" /> 51 51 </td> 52 52 </tr> 53 53 <tr valign="top"> 54 <th scope="row"><?php echo _e( 'Sender email', 'ws-contact-form' ); ?></th>54 <th scope="row"><?php echo esc_attr_e( 'Sender email', 'ws-contact-form' ); ?></th> 55 55 <td> 56 <input class="regular-text" type="text" name="wscontact-form-sender-email-option" value="<?php echo get_option('wscontact-form-sender-email-option'); ?>" />56 <input class="regular-text" type="text" name="wscontact-form-sender-email-option" value="<?php echo esc_attr(get_option('wscontact-form-sender-email-option')); ?>" /> 57 57 </td> 58 58 </tr> 59 59 <tr valign="top"> 60 <th scope="row"><?php echo _e( 'Recipient name', 'ws-contact-form' ); ?></th>60 <th scope="row"><?php echo esc_attr_e( 'Recipient name', 'ws-contact-form' ); ?></th> 61 61 <td> 62 <input class="regular-text" type="text" name="wscontact-form-recipient-name-option" value="<?php echo get_option('wscontact-form-recipient-name-option'); ?>" />62 <input class="regular-text" type="text" name="wscontact-form-recipient-name-option" value="<?php echo esc_attr(get_option('wscontact-form-recipient-name-option')); ?>" /> 63 63 </td> 64 64 </tr> 65 65 <tr valign="top"> 66 <th scope="row"><?php echo _e( 'Recipient email', 'ws-contact-form' ); ?></th>66 <th scope="row"><?php echo esc_attr_e( 'Recipient email', 'ws-contact-form' ); ?></th> 67 67 <td> 68 <input class="regular-text" type="text" name="wscontact-form-recipient-email-option" value="<?php echo get_option('wscontact-form-recipient-email-option'); ?>" />68 <input class="regular-text" type="text" name="wscontact-form-recipient-email-option" value="<?php echo esc_attr(get_option('wscontact-form-recipient-email-option')); ?>" /> 69 69 </td> 70 70 </tr> … … 72 72 73 73 <p class="submit"> 74 <input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" />74 <input type="submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" /> 75 75 </p> 76 76 77 77 </form> 78 78 79 <h2 class="title"><?php echo _e( 'Shortcode', 'ws-contact-form' ); ?></h2>80 <p><?php echo _e( 'To get the form getting working properly it is important to fill all fields above', 'ws-contact-form' ); ?></p>79 <h2 class="title"><?php echo esc_attr_e( 'Shortcode', 'ws-contact-form' ); ?></h2> 80 <p><?php echo esc_attr_e( 'To get the form getting working properly it is important to fill all fields above', 'ws-contact-form' ); ?></p> 81 81 <input class="regular-text" type="text" name="wscontact-form-shortcode" value="[ws-contact-form]" /> 82 <p id="ws-contact-form-shortcode-description" class="description"><?php echo _e( 'Paste this code to your post/page/widget in Text view activated', 'ws-contact-form' ); ?></p>82 <p id="ws-contact-form-shortcode-description" class="description"><?php echo esc_attr_e( 'Paste this code to your post/page/widget in Text view activated', 'ws-contact-form' ); ?></p> 83 83 </div> 84 84 <?php -
ws-contact-form/trunk/css/style.css
r1418779 r3130316 1 .ws- hidden {1 .ws-form-group .ws-hidden { 2 2 display: none 3 3 } 4 4 5 .ws-form- control {5 .ws-form-group .ws-form-control { 6 6 margin-bottom: 5px 7 7 } 8 8 9 .ws- warning-textarea,.ws-warning-input[type="text"] {9 .ws-form-group .ws-warning-textarea, .ws-form-group .ws-warning-input[type="text"] { 10 10 background: #D87D7D 11 11 } 12 12 13 .ws- message-error {13 .ws-form-group .ws-message-error { 14 14 color: #EF0000 15 15 } 16 16 17 .ws- message-successful {17 .ws-form-group .ws-message-successful { 18 18 color: #00B24D 19 19 } -
ws-contact-form/trunk/readme.txt
r2739061 r3130316 1 1 === WS Contact Form === 2 2 Contributors: silvermuru 3 Tags: contact, contact form, contact form plugin, contact forms, contact us, email, feedback form, feedback forms, form, forms3 Tags: contact, contact form, contact form plugin, contact us, feedback form 4 4 Requires at least: 4.4 5 Tested up to: 6. 0.06 Stable tag: 1.3. 75 Tested up to: 6.6.1 6 Stable tag: 1.3.8 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 38 38 39 39 == Changelog == 40 41 = 1.3.8 = 42 43 * Updated code according to Wordpress security and standards guidelines 44 * Tested with Wordpress 6.6.1 45 * Updated version number 40 46 41 47 = 1.3.7 = -
ws-contact-form/trunk/ws-contact-form.php
r2739061 r3130316 4 4 * Plugin URI: https://www.silvermuru.ee/en/wordpress/plugins/ws-contact-form/ 5 5 * Description: Simple contact form for Wordpress 6 * Version: 1.3. 76 * Version: 1.3.8 7 7 * Author: UusWeb.ee 8 8 * Author URI: https://www.wordpressi-kodulehe-tegemine.ee/ 9 * License: GPLv2 or later 9 10 * Text Domain: ws-contact-form 10 11 **/ … … 32 33 ob_start(); 33 34 if (get_option('wscontact-form-title-option') != false) { 34 echo '<h3> ' . get_option('wscontact-form-title-option') . '</h3>';35 echo '<h3> ' . esc_html(get_option('wscontact-form-title-option')) . '</h3>'; 35 36 } 36 37 37 38 $random_form_id = wp_rand(1, 1000); 38 39 ?> 39 <form id="ws_contact_form" class="ws-form-group" data-id="<?php echo $random_form_id; ?>"> 40 <div class="ws-hidden ws-message-response ws-message-successful" id="ws_contact_success"><?php _e( 'Message is sent successfully!', 'ws-contact-form' ); ?></div> 41 <div class="ws-hidden ws-message-response ws-message-error" id="ws_contact_error"><?php _e( 'There is problem with form', 'ws-contact-form' ); ?></div> 42 <input class="ws-form-control" type="text" name="ws_contact_name" id="ws_contact_name" placeholder="<?php _e( 'Name', 'ws-contact-form' ); ?> *"> 43 <input class="ws-form-control" type="text" name="ws_contact_email" id="ws_contact_email" placeholder="<?php _e( 'Email', 'ws-contact-form' ); ?> *"> 44 <textarea class="ws-form-control" name="ws_contact_comment" id="ws_contact_comment" placeholder="<?php _e( 'Content', 'ws-contact-form' ); ?> *"></textarea> 45 <button type="submit" id="ws_send_form"><?php _e( 'Send', 'ws-contact-form' ); ?></button> 40 <form id="ws_contact_form" class="ws-form-group" data-id="<?php echo esc_html($random_form_id); ?>"> 41 <?php wp_nonce_field( 'contact_form_send_control', 'contact_form_send_control_field' ); ?> 42 <div class="ws-hidden ws-message-response ws-message-successful" id="ws_contact_success"><?php esc_html_e( 'Message is sent successfully!', 'ws-contact-form' ); ?></div> 43 <div class="ws-hidden ws-message-response ws-message-error" id="ws_contact_error"><?php esc_html_e( 'There is problem with form', 'ws-contact-form' ); ?></div> 44 <input class="ws-form-control" type="text" name="ws_contact_name" id="ws_contact_name" placeholder="<?php esc_html_e( 'Name', 'ws-contact-form' ); ?> *"> 45 <input class="ws-form-control" type="text" name="ws_contact_email" id="ws_contact_email" placeholder="<?php esc_html_e( 'Email', 'ws-contact-form' ); ?> *"> 46 <textarea class="ws-form-control" name="ws_contact_comment" id="ws_contact_comment" placeholder="<?php esc_html_e( 'Content', 'ws-contact-form' ); ?> *"></textarea> 47 <button type="submit" id="ws_send_form"><?php esc_html_e( 'Send', 'ws-contact-form' ); ?></button> 46 48 </form> 47 49 <?php … … 50 52 51 53 public function ws_contact_form_sript() { 52 wp_register_script( 'ws-contact-form-script', plugin_dir_url(__FILE__) . 'js/scripts.js', array( 'jquery' ), false );54 wp_register_script( 'ws-contact-form-script', plugin_dir_url(__FILE__) . 'js/scripts.js', array( 'jquery' ), true, true ); 53 55 wp_enqueue_script( 'ws-contact-form-script' ); 54 56 } 55 57 56 58 public function ws_contact_form_style() { 57 wp_register_style( 'ws-contact-form-style', plugin_dir_url(__FILE__) . 'css/style.css', true ); 58 wp_enqueue_style( 'ws-contact-form-style' ); 59 global $post; 60 if (has_shortcode($post->post_content, 'ws-contact-form')) { 61 wp_register_style('ws-contact-form-style', plugin_dir_url(__FILE__) . 'css/style.css', true, true); 62 wp_enqueue_style('ws-contact-form-style'); 63 } 59 64 } 60 65 61 66 public function ws_contact_form_sendmail() 62 67 { 63 $ws_cf_sender_name = get_option('wscontact-form-sender-name-option');64 $ws_cf_sender_email = get_option('wscontact-form-sender-email-option');68 $ws_cf_sender_name = esc_attr(get_option('wscontact-form-sender-name-option')); 69 $ws_cf_sender_email = esc_attr(get_option('wscontact-form-sender-email-option')); 65 70 66 $email = $_POST['ws_contact_email']; 67 $headers = "From: " . $ws_cf_sender_name . " <" . get_option('wscontact-form-sender-email-option') . "> \r\n Reply-To: " . $email; 68 $message = $_POST['ws_contact_comment']; 69 $name = $_POST['ws_contact_name']; 71 if ( ! isset( $_POST['contact_form_send_control_field'] ) || ! wp_verify_nonce( $_POST['contact_form_send_control_field'], 'contact_form_send_control' )) { 72 $email = $_POST['ws_contact_email']; 73 $headers = "From: " . $ws_cf_sender_name . " <" . get_option('wscontact-form-sender-email-option') . "> \r\n Reply-To: " . $email; 74 $message = $_POST['ws_contact_comment']; 75 $name = $_POST['ws_contact_name']; 70 76 71 function ws_email_valid($email) { 72 $email_pattern = "/^[a-z\d](\.?[a-z\d_\-]+)*@([a-z\d](\.?[a-z\d\-]+)*\.[a-z]{2,4})$/i"; 73 $result = preg_match( $email_pattern, $email, $match );74 if ( FALSE !== $result && $result > 0 ) 75 {76 return TRUE;77 }78 return FALSE;79 }77 function ws_email_valid($email) 78 { 79 $email_pattern = "/^[a-z\d](\.?[a-z\d_\-]+)*@([a-z\d](\.?[a-z\d\-]+)*\.[a-z]{2,4})$/i"; 80 $result = preg_match($email_pattern, $email, $match); 81 if (FALSE !== $result && $result > 0) { 82 return TRUE; 83 } 84 return FALSE; 85 } 80 86 81 if (isset($name) && ws_email_valid($email) && isset($message)) 82 { 83 $ws_cf_recipient_name = get_option('wscontact-form-recipient-name-option'); 84 $ws_cf_recipient_email = get_option('wscontact-form-recipient-email-option'); 85 $ws_cf_email_title = get_option('wscontact-form-email-title-option'); 86 wp_mail( $ws_cf_recipient_name . " <" . $ws_cf_recipient_email . ">", $ws_cf_email_title, $ws_cf_email_title . ":\r\n " . __( 'Name', 'ws-contact-form' ) . ": " . $name . " \r\n " . __( 'Email', 'ws-contact-form' ) . ": " . $email . " \r\n " . __( 'Content', 'ws-contact-form' ) . ": ". $message, $headers); 87 echo 'OK'; 88 } 89 else { 90 echo 'ERROR'; 91 } 87 if (isset($name) && ws_email_valid($email) && isset($message)) { 88 $ws_cf_recipient_name = esc_attr(get_option('wscontact-form-recipient-name-option')); 89 $ws_cf_recipient_email = esc_attr(get_option('wscontact-form-recipient-email-option')); 90 $ws_cf_email_title = esc_attr(get_option('wscontact-form-email-title-option')); 91 wp_mail($ws_cf_recipient_name . " <" . $ws_cf_recipient_email . ">", $ws_cf_email_title, $ws_cf_email_title . ":\r\n " . __('Name', 'ws-contact-form') . ": " . $name . " \r\n " . __('Email', 'ws-contact-form') . ": " . $email . " \r\n " . __('Content', 'ws-contact-form') . ": " . $message, $headers); 92 echo 'OK'; 93 } else { 94 echo 'ERROR'; 95 } 96 } 97 else { 98 echo 'ERROR'; 99 } 92 100 93 101 die();
Note: See TracChangeset
for help on using the changeset viewer.