# Changelog ## 1.2 - Added File Field in User Registration Form - Added nonce as hidden field - Added function to handle file upload - Added function to rename file before upload ## 1.1 - Fixed: errors if $fields array is empty - Fixed: extra 'WP_Errors' string artifact from previous use of 'is_a' function # Original Changes - Took out styling - this is unnecessary to the tutorial and poor separation. Let the theme handle styling - Removed globals - in general, using globals is a bad practice, because it forces reliance and causes conflicts - Decoupled everything - every function now stands on its own, which makes the code more maintainable, extensible, debuggable, modular, etc. - Added cr_ prefix to functions (as suggested by Kitt Ross) - this will help avoid conflict with other plugins - Moved error display to form display function - this is generally whre you want it, it also separates validation and display - Fields now always use the same names as wp_insert_user uses - this saves a step - Errors are only checked once - Removed registration function - was unnecessary for something that basically just wraps another function - Removed echoing of password back to form - passwords should not be brought back as other data is - Field data is now cleared on success