Changeset 16438 for trunk/wp-admin/includes/template.php
- Timestamp:
- 11/17/2010 06:47:34 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r16431 r16438 2120 2120 endswitch; 2121 2121 $text = ( NULL == $text ) ? __( 'Save Changes' ) : $text; 2122 2122 2123 2123 $attributes = ''; 2124 2124 if ( is_array( $other_attributes ) ) { … … 2129 2129 $attributes = $other_attributes; 2130 2130 } 2131 2131 2132 2132 // Default the id attribute to $name unless an id was specifically provided in $other_attributes 2133 2133 $id = $name; 2134 2134 if ( is_array( $other_attributes ) && isset( $other_attributes['id'] ) ) 2135 2135 $id = $other_attributes['id']; 2136 2136 2137 2137 $button = '<input type="submit" name="' . esc_attr( $name ) . '" id="' . esc_attr( $id ) . '" class="' . esc_attr( $class ); 2138 2138 $button .= '" value="' . esc_attr( $text ) . '" ' . $attributes . ' />'; 2139 2139 2140 2140 if ( $wrap ) { 2141 2141 $button = '<p class="submit">' . $button . '</p>'; 2142 2142 } 2143 2143 2144 2144 return $button; 2145 2145 }
Note: See TracChangeset
for help on using the changeset viewer.