WordPress.org

Make WordPress Core

Ticket #6221: install-tinies.diff

File install-tinies.diff, 2.1 KB (added by nbachiyski, 6 years ago)
  • wp-admin/install.php

     
    4747<form id="setup" method="post" action="install.php?step=2"> 
    4848        <table class="form-table"> 
    4949                <tr> 
    50                         <th scope="row"><?php _e('Blog Title'); ?></th> 
     50                        <th scope="row"><label for="weblog_title"><?php _e('Blog Title'); ?></label></th> 
    5151                        <td><input name="weblog_title" type="text" id="weblog_title" size="25" /></td> 
    5252                </tr> 
    5353                <tr> 
    54                         <th><?php _e('Your E-mail'); ?></th> 
     54                        <th scope="row"><label for="admin_email"><?php _e('Your E-mail'); ?></label></th> 
    5555                        <td><input name="admin_email" type="text" id="admin_email" size="25" /><br /> 
    5656                        <?php _e('Double-check your email address before continuing.'); ?> 
    5757                </tr> 
     
    7676                // check e-mail address 
    7777                if (empty($admin_email)) { 
    7878                        // 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>'); 
    8080                } else if (!is_email($admin_email)) { 
    8181                        // 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&#8217;t a valid e-mail address.  E-mail addresses look like: <code>username@example.com</code>').'</p>'); 
    8383                } 
    8484 
    8585                $wpdb->show_errors(); 
     
    9999        <tr> 
    100100                <th><?php _e('Password'); ?></th> 
    101101                <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> 
    103103        </tr> 
    104104</table> 
    105105 
     
    109109                break; 
    110110} 
    111111?> 
     112<script type="text/javascript">var t = document.getElementById('weblog_title'); if (t){ t.focus(); }</script> 
    112113</body> 
    113 </html> 
    114  No newline at end of file 
     114</html>