Changeset 1141

Show
Ignore:
Timestamp:
10/30/07 17:28:04 (1 year ago)
Author:
donncha
Message:

Make a radio button of the privacy option

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-signup.php

    r1138 r1141  
    9393<tr> 
    9494<th scope="row"  valign="top"><?php _e('Privacy:') ?></th> 
    95 <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> 
     95<td><?php _e('I would like my blog to appear in search engines like Google and Technorati, and in public listings around this site.'); ?>  
     96<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 /> 
    9697</tr> 
    9798<?php 
     
    390391 
    391392$newblogname = isset($_GET['new']) ? strtolower(preg_replace('/^-|-$|[^-a-zA-Z0-9]/', '', $_GET['new'])) : null; 
    392 if( $_POST['blog_public'] != 1 ) 
    393         $_POST['blog_public'] = 0; 
    394393 
    395394if( $active_signup == "none" ) {