diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index cf4bb98b2e..37d0e3fbd3 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -2149,12 +2149,11 @@ function get_submit_button( $text = NULL, $type = 'primary', $name = 'submit', $ } // Default the id attribute to $name unless an id was specifically provided in $other_attributes - $id = 'id="' . esc_attr( $name ) . '" '; - if ( is_array( $other_attributes ) && array_key_exists( 'id', $other_attributes ) ) { - $id = 'id="' . esc_attr( $other_attributes['id'] ) . '" '; - } + $id = $name; + if ( is_array( $other_attributes ) && isset( $other_attributes['id'] ) ) + $id = $other_attributes['id']; - $button = ''; if ( $wrap ) {