From 9ef45a720082372ba3c91e4244d4ca4afd327907 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Wed, 25 Mar 2015 03:22:18 +0000 Subject: [PATCH] Do not output empty name and id HTML attributes in get_submit_button(). Props afercia. Fixes #31749. git-svn-id: https://develop.svn.wordpress.org/trunk@31880 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/template.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php index 481593b0cb..cf3b30bdf3 100644 --- a/src/wp-admin/includes/template.php +++ b/src/wp-admin/includes/template.php @@ -1908,7 +1908,11 @@ function get_submit_button( $text = '', $type = 'primary large', $name = 'submit $attributes = $other_attributes; } - $button = ''; if ( $wrap ) {