Ticket #19377: settings-errors.3.diff
File settings-errors.3.diff, 1020 bytes (added by , 14 years ago) |
---|
-
wp-admin/includes/template.php
function get_settings_errors( $setting = '', $sanitize = FALSE ) { 1319 1319 */ 1320 1320 function settings_errors( $setting = '', $sanitize = FALSE, $hide_on_update = FALSE ) { 1321 1321 1322 if ($hide_on_update AND $_GET['settings-updated']) return; 1322 if ( $hide_on_update && ! empty( $_GET['settings-updated'] ) ) 1323 return; 1323 1324 1324 1325 $settings_errors = get_settings_errors( $setting, $sanitize ); 1325 1326 -
wp-includes/formatting.php
function wp_make_link_relative( $link ) { 2416 2416 * @return string Sanitized value. 2417 2417 */ 2418 2418 function sanitize_option($option, $value) { 2419 2420 2419 switch ( $option ) { 2421 2420 case 'admin_email': 2422 2421 $value = sanitize_email($value);