Ticket #31749: 31749.patch
File 31749.patch, 731 bytes (added by , 10 years ago) |
---|
-
src/wp-admin/includes/template.php
1908 1908 $attributes = $other_attributes; 1909 1909 } 1910 1910 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 ); 1912 1915 $button .= '" value="' . esc_attr( $text ) . '" ' . $attributes . ' />'; 1913 1916 1914 1917 if ( $wrap ) {