Ticket #4332 (assigned defect)

Opened 2 years ago

Last modified 1 year ago

No comment error page requires browser navigation to leave

Reported by: foolswisdom Assigned to: markjaquith (accepted)
Priority: low Milestone: 2.9
Component: General Version:
Severity: minor Keywords:
Cc:

Description (Last modified by foolswisdom)

No comment error page requires browser navigation to leave

ENV: WP trunk r5486

While viewing a post, I click Submit Comment without entering any information and the result is (wp-comments-post.php):

WordPress
Error: please type a comment.

Dead end: no link back to the page where I meant to comment or maybe accidentally clicked the button, and "Error:" makes me feel stupid ;-)

POSSIBLE SOLUTION

I don't see any reason to navigate away from the post post.

ADDITIONAL DETAILS

Assuming the error page is desirable (sure hope not), being able to style it might be useful.

Change History

05/24/07 20:53:47 changed by foolswisdom

  • description changed.

05/24/07 21:39:18 changed by rob1n

  • owner changed from anonymous to rob1n.
  • status changed from new to assigned.
  • version deleted.
  • milestone changed from 2.4 to 2.3.

05/28/07 18:51:02 changed by rob1n

  • status changed from assigned to new.

05/29/07 03:50:32 changed by markjaquith

We have the comment form hook. We could pass on an error number that is handled by the comment form hook and translated into a user-friendly message. We could also put in some JS that does client-side validation.

09/12/07 13:36:40 changed by f00f

I like the JS idea. Disable the submit button and re-enable it when all required fields are filled.

09/12/07 20:54:35 changed by markjaquith

  • owner changed from rob1n to markjaquith.
  • status changed from new to assigned.
  • milestone changed from 2.3 to 2.4 (next).

Seems like a good idea for 2.4