Ticket #19970: 19970.2.diff
File 19970.2.diff, 2.6 KB (added by , 13 years ago) |
---|
-
wp-admin/install.php
151 151 $mysql_compat = version_compare( $mysql_version, $required_mysql_version, '>=' ) || file_exists( WP_CONTENT_DIR . '/db.php' ); 152 152 153 153 if ( !$mysql_compat && !$php_compat ) 154 $compat = sprintf( __( 'You cannot install because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version );154 $compat = sprintf( __( 'You cannot install because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.' ), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ); 155 155 elseif ( !$php_compat ) 156 $compat = sprintf( __( 'You cannot install because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher. You are running version %3$s.'), $wp_version, $required_php_version, $php_version );156 $compat = sprintf( __( 'You cannot install because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher. You are running version %3$s.' ), $wp_version, $required_php_version, $php_version ); 157 157 elseif ( !$mysql_compat ) 158 $compat = sprintf( __( 'You cannot install because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires MySQL version %2$s or higher. You are running version %3$s.'), $wp_version, $required_mysql_version, $mysql_version );158 $compat = sprintf( __( 'You cannot install because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires MySQL version %2$s or higher. You are running version %3$s.' ), $wp_version, $required_mysql_version, $mysql_version ); 159 159 160 160 if ( !$mysql_compat || !$php_compat ) { 161 161 display_header(); 162 die( '<h1>' . __('Insufficient Requirements') . '</h1><p>' . $compat . '</p></body></html>');162 die( '<h1>' . __( 'Insufficient Requirements' ) . '</h1><p>' . $compat . '</p></body></html>' ); 163 163 } 164 164 165 if ( empty( $wpdb->prefix ) ) { 166 display_header(); 167 die( '<h1>' . __( 'Empty Table Prefix' ) . '</h1><p>' . __( 'Empty database table prefix is not supported.' ) . '</p></body></html>' ); 168 } 169 165 170 switch($step) { 166 171 case 0: // Step 1 167 172 case 1: // Step 1, direct link.