Changeset 1665260
- Timestamp:
- 05/26/2017 07:41:33 AM (9 years ago)
- Location:
- question-answer-faq
- Files:
-
- 2 edited
-
tags/1.1.1/mideal-faq.php (modified) (2 diffs)
-
trunk/mideal-faq.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
question-answer-faq/tags/1.1.1/mideal-faq.php
r1665258 r1665260 292 292 if ( ! isset( $_POST['mideal_faq_answer'] ) ) return $post_id; 293 293 294 $my_data = sanitize_text_field( nl2br($_POST['mideal_faq_answer']));294 $my_data = sanitize_text_field( $_POST['mideal_faq_answer'] ); 295 295 $my_data2 = sanitize_email( $_POST['mideal_faq_email'] ); 296 296 … … 498 498 $post_id = wp_insert_post( $post_data ); 499 499 if( $post_id ){ 500 $user_email = sanitize_email( $_POST['mideal_faq_email']); 501 update_post_meta( $post_id, 'mideal_faq_email', $user_email ); 500 if( is_email( $_POST['mideal_faq_email'] ) ){ 501 $user_email = sanitize_email( $_POST['mideal_faq_email']); 502 update_post_meta( $post_id, 'mideal_faq_email', $user_email ); 503 } 502 504 503 505 -
question-answer-faq/trunk/mideal-faq.php
r1665258 r1665260 292 292 if ( ! isset( $_POST['mideal_faq_answer'] ) ) return $post_id; 293 293 294 $my_data = sanitize_text_field( nl2br($_POST['mideal_faq_answer']));294 $my_data = sanitize_text_field( $_POST['mideal_faq_answer'] ); 295 295 $my_data2 = sanitize_email( $_POST['mideal_faq_email'] ); 296 296 … … 498 498 $post_id = wp_insert_post( $post_data ); 499 499 if( $post_id ){ 500 $user_email = sanitize_email( $_POST['mideal_faq_email']); 501 update_post_meta( $post_id, 'mideal_faq_email', $user_email ); 500 if( is_email( $_POST['mideal_faq_email'] ) ){ 501 $user_email = sanitize_email( $_POST['mideal_faq_email']); 502 update_post_meta( $post_id, 'mideal_faq_email', $user_email ); 503 } 502 504 503 505
Note: See TracChangeset
for help on using the changeset viewer.