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: http://core.svn.wordpress.org/trunk@24625 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
49bb647dda
commit
7d53bd66ed
|
@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue