From 2520664ada2596a8fa14913f5bd796f824e28980 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 30 Nov 2005 00:25:05 +0000 Subject: [PATCH] Unserialize fix. fixes #1988 git-svn-id: https://develop.svn.wordpress.org/trunk@3239 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index f7f066d357..0df6f9be94 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -258,7 +258,7 @@ function url_to_postid($url) { function maybe_unserialize($original) { - if ( $gm = @ unserialize($original) ) + if ( false !== $gm = @ unserialize($original) ) return $gm; else return $original; @@ -2169,4 +2169,4 @@ function get_num_queries() { return $wpdb->num_queries; } -?> \ No newline at end of file +?>