Ticket #6221: install-tinies.diff
| File install-tinies.diff, 2.1 KB (added by , 18 years ago) |
|---|
-
wp-admin/install.php
47 47 <form id="setup" method="post" action="install.php?step=2"> 48 48 <table class="form-table"> 49 49 <tr> 50 <th scope="row">< ?php _e('Blog Title'); ?></th>50 <th scope="row"><label for="weblog_title"><?php _e('Blog Title'); ?></label></th> 51 51 <td><input name="weblog_title" type="text" id="weblog_title" size="25" /></td> 52 52 </tr> 53 53 <tr> 54 <th ><?php _e('Your E-mail'); ?></th>54 <th scope="row"><label for="admin_email"><?php _e('Your E-mail'); ?></label></th> 55 55 <td><input name="admin_email" type="text" id="admin_email" size="25" /><br /> 56 56 <?php _e('Double-check your email address before continuing.'); ?> 57 57 </tr> … … 76 76 // check e-mail address 77 77 if (empty($admin_email)) { 78 78 // TODO: poka-yoke 79 die( __("<p><strong>ERROR</strong>: you must provide an e-mail address.</p>"));79 die('<p>'.__("<strong>ERROR</strong>: you must provide an e-mail address.").'</p>'); 80 80 } else if (!is_email($admin_email)) { 81 81 // TODO: poka-yoke 82 die( __('<strong>ERROR</strong>: that isn\'t a valid e-mail address. E-mail addresses look like: <code>username@example.com</code>'));82 die('<p>'.__('<strong>ERROR</strong>: that isn’t a valid e-mail address. E-mail addresses look like: <code>username@example.com</code>').'</p>'); 83 83 } 84 84 85 85 $wpdb->show_errors(); … … 99 99 <tr> 100 100 <th><?php _e('Password'); ?></th> 101 101 <td><code><?php echo $password; ?></code><br /> 102 <?php _e('<p><strong><em>Note that password</em></strong> carefully! It is a <em>random</em> password that was generated just for you.</p>'); ?></td>102 <?php echo '<p>'.__('<strong><em>Note that password</em></strong> carefully! It is a <em>random</em> password that was generated just for you.').'</p>'; ?></td> 103 103 </tr> 104 104 </table> 105 105 … … 109 109 break; 110 110 } 111 111 ?> 112 <script type="text/javascript">var t = document.getElementById('weblog_title'); if (t){ t.focus(); }</script> 112 113 </body> 113 </html> 114 No newline at end of file 114 </html>