Make WordPress Core

Ticket #31749: 31749.patch

File 31749.patch, 731 bytes (added by afercia, 10 years ago)
  • src/wp-admin/includes/template.php

     
    19081908                $attributes = $other_attributes;
    19091909        }
    19101910
    1911         $button = '<input type="submit" name="' . esc_attr( $name ) . '" id="' . esc_attr( $id ) . '" class="' . esc_attr( $class );
     1911        // Don't output empty name attributes.
     1912        $name_attr = $name ? ' name="' . esc_attr( $name ) . '"' : '';
     1913
     1914        $button = '<input type="submit"' . $name_attr . ' id="' . esc_attr( $id ) . '" class="' . esc_attr( $class );
    19121915        $button .= '" value="' . esc_attr( $text ) . '" ' . $attributes . ' />';
    19131916
    19141917        if ( $wrap ) {