[wp-trac] [WordPress Trac] #31671: comment_form() class_submit not working
WordPress Trac
noreply at wordpress.org
Tue Mar 17 17:59:20 UTC 2015
#31671: comment_form() class_submit not working
------------------------------------------+-----------------------------
Reporter: erikfrye | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version: 4.1.1
Severity: normal | Keywords:
Focuses: ui, administration, template |
------------------------------------------+-----------------------------
Using the argument class_submit in comment_form() is not appending the
classes to the comment form button.
Following the documentation at
http://codex.wordpress.org/Function_Reference/comment_form, I should be
able to add 'class_submit' => 'something'. However, when I dug into
comment-template.php, on line 2233 I saw no mention of adding in the
classes.
{{{
<input name="<?php echo esc_attr( $args['name_submit'] ); ?>"
type="submit" id="<?php echo esc_attr( $args['id_submit'] ); ?>"
value="<?php echo esc_attr( $args['label_submit'] ); ?>" />
}}}
Everything worked fine when I added in
{{{
class="<?php echo esc_attr( $args['class_submit'] ); ?>"
}}}
The new line 2233 would look like this
{{{
<input name="<?php echo esc_attr( $args['name_submit'] ); ?>"
type="submit" class="<?php echo esc_attr( $args['class_submit'] ); ?>"
id="<?php echo esc_attr( $args['id_submit'] ); ?>" value="<?php echo
esc_attr( $args['label_submit'] ); ?>" />
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31671>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list