Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Posted to: http://kovshenin.com/wordpress/plugins/wp-custom/
- // I was using this on a customers blog, and one thing that we found
- // was that putting HTML in the text field was not allowing us to edit
- // it correctly. Heres what I did to fix it. I took this line:
- $field_html = "<input class=\"widefat\" id=\"wpcustom-".$uid."\" name=\"wpcustom-".$uid."\" type=\"text\" value=\"".$value."\" />";
- // and changed it to:
- $field_html = "<input class=\"widefat\" id=\"wpcustom-".$uid."\" name=\"wpcustom-".$uid."\" type=\"text\" value=\"".htmlspecialchars($value)."\" />";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement