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:
parent
9d6d4ce11d
commit
0fc3503f69
@ -1427,11 +1427,7 @@ function __get_option($setting) {
|
|||||||
if ( 'siteurl' == $setting || 'home' == $setting || 'category_base' == $setting || 'tag_base' == $setting )
|
if ( 'siteurl' == $setting || 'home' == $setting || 'category_base' == $setting || 'tag_base' == $setting )
|
||||||
$option = untrailingslashit( $option );
|
$option = untrailingslashit( $option );
|
||||||
|
|
||||||
@ $kellogs = unserialize( $option );
|
return maybe_unserialize( $option );
|
||||||
if ( $kellogs !== false )
|
|
||||||
return $kellogs;
|
|
||||||
else
|
|
||||||
return $option;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user