﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
7383	maybe_serialize() should serialize all non-string values	DD32	anonymous	"{{{
update_option('test', 45);
var_dump( get_option('test') );
}}}
Will output ""int 45"", However, on subsequent page loads (ie. Once the cache is cleared) get_option will return 45 as a string ""string '45'""

The issue is that maybe_serialize only serialises arrays, objects, and allready serialized data.[[BR]]
Integers, Booleans, Floats, etc pass right through, (int)45 !== (string)'45' - Which causes problems for plugins which might store a boolean, or a integer in a option (And rely upon === for comparisons for example).

I've attached a patch which serializes all non-string values, while respecting that serialised strings need to be serialized again."	enhancement	closed	normal		General	2.6	trivial	wontfix	has-patch dev-feedback wont-fix not-a-bug invalid	hanskrentel@…
