I want to know all the classes and functions(individual .php files) in a wordpress installation that handle serialization and unserialization.
Leave a Reply
You must be logged in to post a comment.
I want to know all the classes and functions(individual .php files) in a wordpress installation that handle serialization and unserialization.
You must be logged in to post a comment.
WordPress uses
maybe_serialize()
andmaybe_unserialize()
. Both of them use PHP’s nativeserialize()
andunserialize()
functions. See:http://phpxref.ftwr.co.uk/wordpress/wp-includes/functions.php.source.html#l1028
http://phpxref.ftwr.co.uk/wordpress/wp-includes/functions.php.source.html#l222
Both of those functions make use of the function
is_serialized()
, which checks if the variable is serialized yet. See:http://phpxref.ftwr.co.uk/wordpress/wp-includes/functions.php.source.html#l222