Ticket #12868: 12868.diff
File 12868.diff, 869 bytes (added by , 15 years ago) |
---|
-
wp-includes/formatting.php
2435 2435 break; 2436 2436 2437 2437 case 'siteurl': 2438 $value = esc_url_raw($value); 2439 if ( $value == '' && function_exists('add_settings_error') ) 2440 add_settings_error('siteurl', 'invalid_siteurl', __('The WordPress address you submitted was not in the right format. Please enter a valid URL.')); 2441 break; 2438 2442 case 'home': 2439 2443 $value = esc_url_raw($value); 2444 if ( $value == '' && function_exists('add_settings_error') ) 2445 add_settings_error('home', 'invalid_home', __('The Site address you submitted was not in the right format. Please enter a valid URL.')); 2440 2446 break; 2441 2447 default : 2442 2448 $value = apply_filters("sanitize_option_{$option}", $value, $option);