Ticket #34392: 34392.diff
File 34392.diff, 639 bytes (added by , 9 years ago) |
---|
-
wp-includes/formatting.php
3749 3749 break; 3750 3750 3751 3751 case 'siteurl': 3752 $value = $wpdb->strip_invalid_text_for_column( $wpdb->options, 'option_value', $value );3753 3752 if ( is_wp_error( $value ) ) { 3754 3753 $error = $value->get_error_message(); 3755 3754 } else { 3755 $value = $wpdb->strip_invalid_text_for_column( $wpdb->options, 'option_value', $value ); 3756 3756 if ( preg_match( '#http(s?)://(.+)#i', $value ) ) { 3757 3757 $value = esc_url_raw( $value ); 3758 3758 } else {