#27070 closed defect (bug) (fixed)
Additional argument or filter for submit_button function
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 3.9 | Priority: | normal |
Severity: | normal | Version: | 3.8.1 |
Component: | General | Keywords: | has-patch |
Focuses: | docs | Cc: |
Description
submit_button function should have an additional argument $class so we can add additional classes to the button or filter on $classes array in get_submit_button() function
I know that we can use $wrap as workaround but if I want to add, for instance, "right" class to the submit button I am not able to.
Attachments (1)
Change History (7)
#2
@
11 years ago
- Focuses docs added; administration removed
- Keywords has-patch added; close removed
- Milestone changed from Awaiting Review to 3.9
- Type changed from enhancement to defect (bug)
I think we can at least update the phpdoc for submit_button()
to mention that the $type
parameter doubles as the value of the class attribute.
27070.diff does this.
Note: See
TracTickets for help on using
tickets.
Additional classes can be added using the
$type
argument:No need for a new argument here: #20492.