summaryrefslogtreecommitdiffstats
path: root/wp-signup.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-10-30 17:28:04 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-10-30 17:28:04 +0000
commit55c78d89fca54ab1444090969e138e027998b68d (patch)
tree77e4a2613e371a3a66a03000d90989ba64391b60 /wp-signup.php
parent3c44c8c8b55c5e5b3389bf7699bc34c223f9ebf6 (diff)
downloadwordpress-mu-55c78d89fca54ab1444090969e138e027998b68d.tar.gz
wordpress-mu-55c78d89fca54ab1444090969e138e027998b68d.tar.xz
wordpress-mu-55c78d89fca54ab1444090969e138e027998b68d.zip
Make a radio button of the privacy option
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1141 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-signup.php')
-rw-r--r--wp-signup.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/wp-signup.php b/wp-signup.php
index f3396d1..c0ed66c 100644
--- a/wp-signup.php
+++ b/wp-signup.php
@@ -92,7 +92,8 @@ function show_blog_form($blog_id = '', $blog_title = '', $errors = '') {
?>
<tr>
<th scope="row" valign="top"><?php _e('Privacy:') ?></th>
-<td><label><input type="checkbox" name="blog_public" value="1" checked="checked" /> <?php _e('I would like my blog to appear in search engines like Google and Technorati, and in public listings around this site.'); ?></label></td>
+<td><?php _e('I would like my blog to appear in search engines like Google and Technorati, and in public listings around this site.'); ?>
+<label><input type="radio" name="blog_public" value="1" <?php if( !isset( $_POST[ 'blog_public' ] ) || $_POST[ 'blog_public' ] == '1' ) { ?>checked="checked"<?php } ?> /> <strong>Yes</strong> </label> <label><input type="radio" name="blog_public" value="0" <?php if( isset( $_POST[ 'blog_public' ] ) && $_POST[ 'blog_public' ] == '0' ) { ?>checked="checked"<?php } ?> /><strong>No</strong> </label> <br />
</tr>
<?php
do_action('signup_blogform', $errors);
@@ -389,8 +390,6 @@ if( is_site_admin() ) {
}
$newblogname = isset($_GET['new']) ? strtolower(preg_replace('/^-|-$|[^-a-zA-Z0-9]/', '', $_GET['new'])) : null;
-if( $_POST['blog_public'] != 1 )
- $_POST['blog_public'] = 0;
if( $active_signup == "none" ) {
_e( "Registration has been disabled." );