Use maybe_unserialize() in upgrade.php's private get_option() function. This actually predates maybe_unserialize() ([2487], [3234]). props leewillis77. fixes #24365.

git-svn-id: https://develop.svn.wordpress.org/trunk@24625 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2013-07-10 04:01:20 +00:00
parent 9d6d4ce11d
commit 0fc3503f69
1 changed files with 1 additions and 5 deletions

View File

@ -1427,11 +1427,7 @@ function __get_option($setting) {
if ( 'siteurl' == $setting || 'home' == $setting || 'category_base' == $setting || 'tag_base' == $setting )
$option = untrailingslashit( $option );
@ $kellogs = unserialize( $option );
if ( $kellogs !== false )
return $kellogs;
else
return $option;
return maybe_unserialize( $option );
}
/**