#12581 closed enhancement (fixed)
Add disabled() form helper
| Reported by: | nacin | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | Formatting | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
We should add disabled() as a form helper to echo ' disabled="disabled"'.
We should also consider moving selected(), checked(), and disabled() (and the helper function) into wp-includes/general-template.php, out of wp-admin/includes/template.php, as a plugin author may find use for them outside of wp-admin.
readonly() wouldn't be a bad idea either, though usually that isn't based on a condition (and we never use it conditionally in core).
Attachments (1)
Change History (7)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Replying to nacin:
+1
+1.5 :)