Move submit_button to wp-includes for frontend inclusion & use with comment-template.php
|Reported by:||wpsmith||Owned by:|
It would be nice to be able to use submit_button() on the frontend as well (cf. #15064). It appears that #16066 "fixed" #16061, which it did, but moving the submit_button functions would enable to revert back to the use of submit_button(). Moreover, I recommend changing the comment-template.php in wp-includes (16066#file2) to use a filter with the submit_button to enable attributes like onClick. As it stands right now, if a user wants to track comments in their analytics they have to hide the original and add a function hooked into comment_form and redo all the args.