Opened 2 years ago
Closed 2 years ago
#56365 closed enhancement (fixed)
Placeholders instead of values in setup-config.php
Reported by: | oliverstapelfeldt | Owned by: | oliverstapelfeldt |
---|---|---|---|
Milestone: | 6.1 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Upgrade/Install | Keywords: | good-first-bug has-patch |
Focuses: | ui, accessibility | Cc: |
Description
Hello,
is there a reason why in setup-config.php for example in line 216 "value" is used instead of "placeholder"?
Because now when you click in the field you have to delete the value instead of just writing.
Best regards, Olli
Attachments (3)
Change History (20)
#3
follow-up:
↓ 6
@
2 years ago
@krupalpanchal when the person who created the ticket say "I'm excited to create my first patch", it is not super cool to send a patch of your own few hours later…
Fortunately, the above patch is missing a lot of fields available in the setup form. So @oliverstapelfeldt please feel free to create a patch of your own. You can do it using SVN or GIT, and by generating a diff file or via a GitHub pull request if you prefer 🙂
#6
in reply to:
↑ 3
@
2 years ago
Replying to audrasjb:
@krupalpanchal when the person who created the ticket say "I'm excited to create my first patch", it is not super cool to send a patch of your own few hours later…
Sure @audrasjb 👍
This ticket was mentioned in Slack in #accessibility by ryokuhi. View the logs.
2 years ago
#8
@
2 years ago
- Keywords 2nd-opinion added; needs-patch removed
- Milestone changed from Awaiting Review to 6.1
Thanks for the patch!
By the way, I'm not sure we should use a placeholder for the table prefix as we need a default value.
#10
@
2 years ago
I think localhost
is good as a default host value, too, not a placeholder.
Changing the table prefix has been recommended for security, but a default value of wp_
gives a suggestion for anyone who wants something else. Besides, the input field's prefix-desc
description text includes "change this" as an option.
Also, these fields do not have required
attributes.
#11
@
2 years ago
I'm not sure about required. Because then, if you leave Table Prefix empty, the following error message can be deleted.
This ticket was mentioned in Slack in #core-auto-updates by costdev. View the logs.
2 years ago
This ticket was mentioned in Slack in #accessibility by ryokuhi. View the logs.
2 years ago
#15
@
2 years ago
- Keywords 2nd-opinion removed
Perhaps we should stay focused on the placeholder attributes on this ticket. The fields have labels and instructions, which could be enough to avoid errors (yet also can be improved).
Required attributes might prevent the simple mistake of leaving one of the fields empty, but any incorrect value in the first four can result in a database connection error on the next screen.
And if the table prefix field becomes required, I would not want to remove the error message, in case someone tries to work around the required attribute.
Hello @oliverstapelfeldt, welcome back to WordPress Core Trac and thank you for opening this ticket,
This is a pretty old implementation, and I think it would indeed be good to challenge it again today :)
Would be nice to get a patch that replaces values with placeholder, just to make sure it doesn't introduce any backward compatibility issue :)