Make WordPress Core

Ticket #12868: 12868.diff

File 12868.diff, 869 bytes (added by blepoxp, 15 years ago)

Partial fix adds notification. Still need to kill update.

  • wp-includes/formatting.php

     
    24352435                        break;
    24362436
    24372437                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;
    24382442                case 'home':
    24392443                        $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.'));
    24402446                        break;
    24412447                default :
    24422448                        $value = apply_filters("sanitize_option_{$option}", $value, $option);