[Plugin: PDO (SQLite) For WordPress] Fixed a small bug in the plugin appeared under WordPress 3.0.1
-
Hi, I found a bug in the plugin appeared when writing a new post under WordPress version 3.0.1 .
A warning occurs at line 117 in “wp-content/pdo/db.php”.
The problem happens, because of passing an array variable to the addslashes() function instead of a string.
To solve the problem, the line 117 inside the escape() function that contains “return addslashes($string);” should be replaced with the following code:
if ( !is_array($string) ){
return addslashes($string);
}else {
return $string;
}
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: PDO (SQLite) For WordPress] Fixed a small bug in the plugin appeared under WordPress 3.0.1’ is closed to new replies.