| @@ -117,8 +117,9 @@ | ||
| 117 | 117 | * @param string $name unique name for the string |
| 118 | 118 | * @return string |
| 119 | 119 | */ |
| 120 | 120 | public static function sanitize_string_translation( $translation, $name ) { |
| 121 | + $translation = wp_unslash( trim( $translation ) ); | |
| 121 | 122 | |
| 122 | 123 | if ( false !== ( $option = array_search( $name, self::$default_strings['options'], true ) ) ) { |
| 123 | 124 | $translation = sanitize_option( $option, $translation ); |
| 124 | 125 | } |