hi,
the past few days i tried to setup some roles via scripting.
there i found that (i do not know, how to set roles via code, the codex gives nothing about that, i just did a grep about the code, and looking at mysql.log while updating some roles via wp-admin)
if i try to update with a value "{s:13:"administrator";b:1;}" it does, if i am using "a:1:{s:13:"administrator";b:1;}" it breaks the value and will add "s:31:\"" in front of the value ;-((
so i cannot insert the right value "´a:1:{s:13:"administrator";b:1;}´" into the database, it comes there as s:31:\"a:1:{s:13:"administrator";b:1;}
how can i fix that behavior? or how can i add roles to users via code? ;-)