Ticket #5495: install.diff
| File install.diff, 1.9 KB (added by Potter_System, 4 years ago) |
|---|
-
wp-admin/install.php
13 13 $step = $_GET['step']; 14 14 else 15 15 $step = 0; 16 function display_header(){ 16 17 header( 'Content-Type: text/html; charset=utf-8' ); 17 18 ?> 18 19 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> … … 24 25 </head> 25 26 <body> 26 27 <h1 id="logo"><img alt="WordPress" src="images/wordpress-logo.png" /></h1> 28 27 29 <?php 30 }//end function display_header(); 31 28 32 // Let's check to make sure WP isn't already installed. 29 if ( is_blog_installed() ) die('<h1>'.__('Already Installed').'</h1><p>'.__('You appear to have already installed WordPress. To reinstall please clear your old database tables first.').'</p></body></html>');33 if ( is_blog_installed() ) {display_header(); die('<h1>'.__('Already Installed').'</h1><p>'.__('You appear to have already installed WordPress. To reinstall please clear your old database tables first.').'</p></body></html>');} 30 34 31 35 switch($step) { 32 36 case 0: 33 37 case 1: // in case people are directly linking to this 38 display_header(); 34 39 ?> 35 40 <h1><?php _e('Welcome'); ?></h1> 36 41 <p><?php printf(__('Welcome to the famous five minute WordPress installation process! You may want to browse the <a href="%s">ReadMe documentation</a> at your leisure. Otherwise, just fill in the information below and you\'ll be on your way to using the most extendable and powerful personal publishing platform in the world.'), '../readme.html'); ?></p> … … 61 66 <?php 62 67 break; 63 68 case 2: 69 if ( !empty($wpdb->error) ) 70 wp_die($wpdb->error->get_error_message()); 71 display_header(); 64 72 // Fill in the data we gathered 65 73 $weblog_title = stripslashes($_POST['weblog_title']); 66 74 $admin_email = stripslashes($_POST['admin_email']);
