diff --git src/wp-includes/wp-db.php src/wp-includes/wp-db.php
index 6149274..e69b8d7 100644
|
|
|
class wpdb {
|
| 2070 | 2070 | |
| 2071 | 2071 | $data = $this->process_field_charsets( $data, $table ); |
| 2072 | 2072 | if ( false === $data ) { |
| | 2073 | $this->last_error = __( 'Error with charset.' ); |
| 2073 | 2074 | return false; |
| 2074 | 2075 | } |
| 2075 | 2076 | |
| 2076 | 2077 | $data = $this->process_field_lengths( $data, $table ); |
| 2077 | 2078 | if ( false === $data ) { |
| | 2079 | $this->last_error = __( 'Error with field in query with the value to long for field.' ); |
| 2078 | 2080 | return false; |
| 2079 | 2081 | } |
| 2080 | 2082 | |
| 2081 | 2083 | $converted_data = $this->strip_invalid_text( $data ); |
| 2082 | 2084 | |
| 2083 | 2085 | if ( $data !== $converted_data ) { |
| | 2086 | $this->last_error = __( 'Error with invalid characters in a value for a field.' ); |
| 2084 | 2087 | return false; |
| 2085 | 2088 | } |
| 2086 | 2089 | |