Closed lolozere closed 10 years ago
Here a temporary code I wrote :
public function validation_RED_ThemeSettings($submitData, $oldSubmitData) {
return $this->_traillingSlashes($submitData);
}
protected function _traillingSlashes($data) {
if (is_string($data)) {
$data = stripslashes($data);
} elseif (is_array($data)) {
foreach($data as $key => $value) {
$data[$key] = $this->_traillingSlashes($value);
}
}
return $data;
}
Can you post here the exact text that causes the problem so that I can try to reproduce it?
The text was in the screen shot : '----------------- Chouette tu peux piquer le contenu :) J'adore '-----------------
I see. Thanks for the report. I updated the master branch with the fix. https://github.com/michaeluno/admin-page-framework/commit/971bac4bbd21c4b46975b139480a8ef72de326e4
Thanks it's perfect, it's work.
I create a class extending AdminPageFramework_MetaBox_Page to add a textarea field. I tape this input data : but after saving a "\" was added : Is it possible to detect fix it ? I search a solution in the code to pull a request but I'am lost...