Ticket #12868: 12868-new.diff
| File 12868-new.diff, 1.0 KB (added by , 16 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 { 2441 $value = get_option( $option ); // Resets option to stored val in case of empty 2442 add_settings_error('siteurl', 'invalid_siteurl', __('The WordPress address you submitted was not in the right format. Please enter a valid URL.')); 2443 } 2444 break; 2438 2445 case 'home': 2439 2446 $value = esc_url_raw($value); 2447 if ( $value == '' && function_exists('add_settings_error') ) 2448 { 2449 $value = get_option( $option ); // Resets option to stored val in case of empty 2450 add_settings_error('home', 'invalid_home', __('The Site address you submitted was not in the right format. Please enter a valid URL.')); 2451 } 2440 2452 break; 2441 2453 default : 2442 2454 $value = apply_filters("sanitize_option_{$option}", $value, $option);
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)