Changeset 19687 for trunk/wp-admin/includes/template.php
- Timestamp:
- 01/05/2012 08:50:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r19684 r19687 1199 1199 * @return array Array of settings errors 1200 1200 */ 1201 function get_settings_errors( $setting = '', $sanitize = FALSE) {1201 function get_settings_errors( $setting = '', $sanitize = false ) { 1202 1202 global $wp_settings_errors; 1203 1203 … … 1251 1251 * @param boolean $hide_on_update If set to true errors will not be shown if the settings page has already been submitted. 1252 1252 */ 1253 function settings_errors( $setting = '', $sanitize = FALSE, $hide_on_update = FALSE) {1253 function settings_errors( $setting = '', $sanitize = false, $hide_on_update = false ) { 1254 1254 1255 1255 if ($hide_on_update AND $_GET['settings-updated']) return; … … 1588 1588 * string such as 'tabindex="1"', though the array format is typically cleaner. 1589 1589 */ 1590 function submit_button( $text = NULL, $type = 'primary', $name = 'submit', $wrap = true, $other_attributes = NULL) {1590 function submit_button( $text = null, $type = 'primary', $name = 'submit', $wrap = true, $other_attributes = null ) { 1591 1591 echo get_submit_button( $text, $type, $name, $wrap, $other_attributes ); 1592 1592 } … … 1609 1609 * string such as 'tabindex="1"', though the array format is typically cleaner. 1610 1610 */ 1611 function get_submit_button( $text = NULL, $type = 'primary', $name = 'submit', $wrap = true, $other_attributes = NULL) {1611 function get_submit_button( $text = null, $type = 'primary', $name = 'submit', $wrap = true, $other_attributes = null ) { 1612 1612 switch ( $type ) : 1613 1613 case 'primary' : … … 1621 1621 $class = $type; // Custom cases can just pass in the classes they want to be used 1622 1622 endswitch; 1623 $text = ( NULL== $text ) ? __( 'Save Changes' ) : $text;1623 $text = ( null == $text ) ? __( 'Save Changes' ) : $text; 1624 1624 1625 1625 // Default the id attribute to $name unless an id was specifically provided in $other_attributes
Note: See TracChangeset
for help on using the changeset viewer.