IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 103 | 103 | $weblog_title = isset( $_POST['weblog_title'] ) ? trim( wp_unslash( $_POST['weblog_title'] ) ) : ''; |
| 104 | 104 | $user_name = isset( $_POST['user_name'] ) ? trim( wp_unslash( $_POST['user_name'] ) ) : ''; |
| 105 | 105 | $admin_email = isset( $_POST['admin_email'] ) ? trim( wp_unslash( $_POST['admin_email'] ) ) : ''; |
| 106 | | |
| | 106 | $allow_registration = isset( $_POST['registration-enabled'] ); |
| 107 | 107 | if ( ! is_null( $error ) ) { |
| 108 | 108 | ?> |
| 109 | 109 | <h1><?php _ex( 'Welcome', 'Howdy' ); ?></h1> |
| … |
… |
|
| 179 | 179 | <td><input name="admin_email" type="email" id="admin_email" size="25" value="<?php echo esc_attr( $admin_email ); ?>" /> |
| 180 | 180 | <p><?php _e( 'Double-check your email address before continuing.' ); ?></p></td> |
| 181 | 181 | </tr> |
| 182 | | <tr> |
| | 182 | <tr> |
| | 183 | <th scope="row"><?php _e( 'Enable registration' ); ?></th> |
| | 184 | <td> |
| | 185 | <fieldset> |
| | 186 | <input id="registration-enabled" type="checkbox" name="registration-enabled" value="1" <?php |
| | 187 | checked( true, |
| | 188 | $allow_registration ); ?> /> |
| | 189 | <label for="registration-enabled"><?php _e( 'Allow user to register' ); ?></label><br/> |
| | 190 | </fieldset> |
| | 191 | </td> |
| | 192 | </tr> |
| | 193 | |
| | 194 | |
| | 195 | <tr> |
| 183 | 196 | <th scope="row"><?php has_action( 'blog_privacy_selector' ) ? _e( 'Site Visibility' ) : _e( 'Search Engine Visibility' ); ?></th> |
| 184 | 197 | <td> |
| 185 | 198 | <fieldset> |
| … |
… |
|
| 362 | 375 | $admin_password_check = isset( $_POST['admin_password2'] ) ? wp_unslash( $_POST['admin_password2'] ) : ''; |
| 363 | 376 | $admin_email = isset( $_POST['admin_email'] ) ? trim( wp_unslash( $_POST['admin_email'] ) ) : ''; |
| 364 | 377 | $public = isset( $_POST['blog_public'] ) ? (int) $_POST['blog_public'] : 1; |
| | 378 | $allow_registration = isset( $_POST['registration-enabled'] ); |
| 365 | 379 | |
| 366 | 380 | // Check email address. |
| 367 | 381 | $error = false; |
| … |
… |
|
| 389 | 403 | if ( $error === false ) { |
| 390 | 404 | $wpdb->show_errors(); |
| 391 | 405 | $result = wp_install( $weblog_title, $user_name, $admin_email, $public, '', wp_slash( $admin_password ), $loaded_language ); |
| | 406 | if ( true === $allow_registration ){ |
| | 407 | update_option( 'users_can_register', 1); |
| | 408 | } |
| 392 | 409 | ?> |
| 393 | 410 | |
| 394 | 411 | <h1><?php _e( 'Success!' ); ?></h1> |