Ticket #15064: 15064.diff
File 15064.diff, 3.3 KB (added by , 13 years ago) |
---|
-
options-privacy.php
50 50 51 51 <?php do_settings_sections('privacy'); ?> 52 52 53 <p class="submit"> 54 <input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" /> 55 </p> 53 <?php submit_button(); ?> 56 54 </form> 57 55 58 56 </div> -
includes/template.php
2064 2064 $current_screen = apply_filters('current_screen', $current_screen); 2065 2065 } 2066 2066 2067 /** 2068 * Echos a paragraph-wrapped submit button, with provided text and appropriate class 2069 * @param string $text The text of the button (defaults to 'Save Changes') 2070 * @param string $type The type of button. One of: primary, secondary, delete 2071 * @param string $name The HTML name of the submit button. Defaults to "submit" 2072 */ 2073 function submit_button( $text = NULL, $type = 'primary', $name = 'submit' ) { 2074 echo get_submit_button( $text, $type, $name ); 2075 } 2076 2077 /** 2078 * Returns a paragraph-wrapped submit button, with provided text and appropriate class 2079 * @param string $text The text of the button (defaults to 'Save Changes') 2080 * @param string $type The type of button. One of: primary, secondary, delete 2081 * @param string $name The HTML name of the submit button. Defaults to "submit" 2082 */ 2083 function get_submit_button( $text = NULL, $type = 'primary', $name = 'submit' ) { 2084 switch ( $type ) : 2085 case 'primary' : 2086 case 'secondary' : 2087 $class = 'button-' . $type; 2088 break; 2089 case 'delete' : 2090 $class = 'button-secondary delete'; 2091 break; 2092 default : 2093 $class = $type; // Custom cases can just pass in the classes they want to be used 2094 endswitch; 2095 $text = ( NULL == $text ) ? __( 'Save Changes' ) : $text; 2096 return '<p class="submit"><input type="submit" name="' . esc_attr( $name ) . ' class="' . esc_attr( $class ) . '" value="' . esc_attr( $text ) . '" /></p>'; 2097 } -
options-media.php
132 132 133 133 <?php do_settings_sections('media'); ?> 134 134 135 <p class="submit"> 136 <input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" /> 137 </p> 135 <?php submit_button(); ?> 138 136 139 137 </form> 140 138 -
options-permalink.php
221 221 222 222 <?php do_settings_sections('permalink'); ?> 223 223 224 <p class="submit"> 225 <input type="submit" name="submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" /> 226 </p> 224 <?php submit_button(); ?> 227 225 </form> 228 226 <?php if ( !is_multisite() ) { ?> 229 227 <?php if ( $iis7_permalinks ) : -
options-writing.php
148 148 149 149 <?php do_settings_sections('writing'); ?> 150 150 151 <p class="submit"> 152 <input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" /> 153 </p> 151 <?php submit_button(); ?> 154 152 </form> 155 153 </div> 156 154