Unserialize fix. fixes #1988
git-svn-id: https://develop.svn.wordpress.org/trunk@3239 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7cec380314
commit
2520664ada
@ -258,7 +258,7 @@ function url_to_postid($url) {
|
|||||||
|
|
||||||
|
|
||||||
function maybe_unserialize($original) {
|
function maybe_unserialize($original) {
|
||||||
if ( $gm = @ unserialize($original) )
|
if ( false !== $gm = @ unserialize($original) )
|
||||||
return $gm;
|
return $gm;
|
||||||
else
|
else
|
||||||
return $original;
|
return $original;
|
||||||
@ -2169,4 +2169,4 @@ function get_num_queries() {
|
|||||||
return $wpdb->num_queries;
|
return $wpdb->num_queries;
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user