Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Simplified blog creation – blogname generated from Blog Title


peterverkooijen
Participant

@peterverkooijen

This doesn’t work either…:

...
echo '<input name="blog_title" type="text" id="blog_title" value="'.wp_specialchars($blog_title, 1).'" /></p>';

$blogname = preg_replace('/[^a-z0-9]/i', '', str_replace(' ', '', strtolower(wp_specialchars($blog_title, 1))));

?>

<input name="blogname" type="text" id="blogname" value="<? wp_specialchars($blogname, 1); ?>" maxlength="50" />
...

Skip to toolbar