From 010e99dc5eb0b627415e7d158364b812fb6fc959 Mon Sep 17 00:00:00 2001 From: Holger Date: Tue, 23 Feb 2016 08:48:27 +0100 Subject: [PATCH] Adding Bootstrap button markup --- inc/custom-comments.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/inc/custom-comments.php b/inc/custom-comments.php index ecdabd6..ce50ef1 100644 --- a/inc/custom-comments.php +++ b/inc/custom-comments.php @@ -21,14 +21,11 @@ add_filter( 'comment_form_defaults', 'bootstrap3_comment_form' ); function bootstrap3_comment_form( $args ) { + $req = get_option( 'require_name_email' ); $args['comment_field'] = '
- +
'; + $args['class_submit'] = 'btn btn-default'; // since WP 4.1 return $args; } - - add_action('comment_form', 'bootstrap3_comment_button' ); - function bootstrap3_comment_button() { - echo ''; - }