Changeset 31880 for trunk/src/wp-admin/includes/template.php
- Timestamp:
- 03/25/2015 03:22:18 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/template.php
r31765 r31880 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 and id attributes. 1912 $name_attr = $name ? ' name="' . esc_attr( $name ) . '"' : ''; 1913 $id_attr = $id ? ' id="' . esc_attr( $id ) . '"' : ''; 1914 1915 $button = '<input type="submit"' . $name_attr . $id_attr . ' class="' . esc_attr( $class ); 1912 1916 $button .= '" value="' . esc_attr( $text ) . '" ' . $attributes . ' />'; 1913 1917
Note: See TracChangeset
for help on using the changeset viewer.