[wp-trac] [WordPress Trac] #15729: Better UX after supplying incorrect information to setup-config
WordPress Trac
wp-trac at lists.automattic.com
Wed Dec 8 07:19:29 UTC 2010
#15729: Better UX after supplying incorrect information to setup-config
-----------------------------+----------------------------------------------
Reporter: nacin | Owner:
Type: defect (bug) | Status: new
Priority: low | Milestone: Future Release
Component: Upgrade/Install | Version:
Severity: normal | Keywords: gci needs-patch
-----------------------------+----------------------------------------------
In #15682 I added a 'Try Again' button to step 2 of setup-config.php if
the credentials were incorrect.
The button is a simple link with a `javascript:history.go(-1)` hack. This
should instead be a form with hidden values that submits back to setup-
config.php?step=1, and fills out the form so they can try again.
Additional enhancement: If the prefix is malformed (can only contain
letters, numbers and underscores), we do a wp_die(). We should again have
a form with a 'Try Again' button that returns them.
As an added bonus, incorrect credentials should be filled out (for
reference) but marked as incorrect and potentially with the focus set on
that field.
Only caveat I can think of: This will require the use of esc_attr(), which
we don't have access to yet. Not sure how to solve that without reverting
to htmlspecialchars() with some extra work.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15729>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list