Changeset 47122 for trunk/src/wp-admin/install.php
- Timestamp:
- 01/29/2020 12:43:23 AM (7 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/install.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/install.php
r45932 r47122 78 78 79 79 <?php 80 } // end display_header()80 } // End display_header(). 81 81 82 82 /** … … 95 95 $user_table = ( $wpdb->get_var( $sql ) != null ); 96 96 97 // Ensure that Blogs appear in search engines by default.97 // Ensure that sites appear in search engines by default. 98 98 $blog_public = 1; 99 99 if ( isset( $_POST['weblog_title'] ) ) { … … 210 210 </form> 211 211 <?php 212 } // end display_setup_form()212 } // End display_setup_form(). 213 213 214 214 // Let's check to make sure WP isn't already installed. … … 304 304 305 305 switch ( $step ) { 306 case 0: // Step 0 306 case 0: // Step 0. 307 307 if ( wp_can_install_language_pack() && empty( $language ) ) { 308 308 $languages = wp_get_available_translations(); … … 356 356 357 357 display_header(); 358 // Fill in the data we gathered 358 // Fill in the data we gathered. 359 359 $weblog_title = isset( $_POST['weblog_title'] ) ? trim( wp_unslash( $_POST['weblog_title'] ) ) : ''; 360 360 $user_name = isset( $_POST['user_name'] ) ? trim( wp_unslash( $_POST['user_name'] ) ) : ''; … … 367 367 $error = false; 368 368 if ( empty( $user_name ) ) { 369 // TODO: poka-yoke369 // TODO: Poka-yoke. 370 370 display_setup_form( __( 'Please provide a valid username.' ) ); 371 371 $error = true; … … 374 374 $error = true; 375 375 } elseif ( $admin_password != $admin_password_check ) { 376 // TODO: poka-yoke376 // TODO: Poka-yoke. 377 377 display_setup_form( __( 'Your passwords do not match. Please try again.' ) ); 378 378 $error = true; 379 379 } elseif ( empty( $admin_email ) ) { 380 // TODO: poka-yoke380 // TODO: Poka-yoke. 381 381 display_setup_form( __( 'You must provide an email address.' ) ); 382 382 $error = true; 383 383 } elseif ( ! is_email( $admin_email ) ) { 384 // TODO: poka-yoke384 // TODO: Poka-yoke. 385 385 display_setup_form( __( 'Sorry, that isn’t a valid email address. Email addresses look like <code>username@example.com</code>.' ) ); 386 386 $error = true;
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)