/i', $display_text)) { ad_edit_author_details($display_text, $profile_id); }else{ echo $display_text; echo '
'; } } function ad_save_author_details_changes(){ global $wpdb; $profile_id = esc_attr($_POST["profile_id"]); $email = esc_attr($_POST["email"]); $first_name = esc_attr($_POST["first_name"]); $last_name = esc_attr($_POST["last_name"]); $url = esc_attr($_POST["url"]); $description = esc_attr($_POST["description"]); $twitter = esc_attr($_POST["twitter"]); $facebook = esc_attr($_POST["facebook"]); $google_plus = esc_attr($_POST["google_plus"]); $linkedin = esc_attr($_POST["linkedin"]); $flickr = esc_attr($_POST["flickr"]); $youtube = esc_attr($_POST["youtube"]); $vimeo = esc_attr($_POST["vimeo"]); $skype = esc_attr($_POST["skype"]); $xing = esc_attr($_POST["xing"]); $use_custom_image = null; if(isset($_POST['use_custom_image'])) { $use_custom_image = esc_attr($_POST["use_custom_image"]); } $custom_image_url = esc_attr($_POST["custom_image_url"]); $display_html_block = null; if(isset($_POST['display_html_block'])) { $display_html_block = esc_attr($_POST["display_html_block"]); } $html_block = $_POST["html_block"]; $error = 0; $msg = ''; if($description == ""){ $error = 1; $msg .= 'Description empty!
'; } if($email != ""){ if(is_email($email) == false){ $error = 1; $msg .= 'Email is not valid!
'; } } if($error == 1){ return '