Make WordPress Core

Ticket #45564: install.patch

File install.patch, 684 bytes (added by daniyalahmedk, 7 years ago)

Install Patch

  • .php

    old new  
    370370
    371371                if ( $error === false ) {
    372372                        $wpdb->show_errors();
     373                        if(empty($wpdb->show_errors())){
    373374                        $result = wp_install( $weblog_title, $user_name, $admin_email, $public, '', wp_slash( $admin_password ), $loaded_language );
    374375?>
    375376
     
    394395</table>
    395396
    396397<p class="step"><a href="<?php echo esc_url( wp_login_url() ); ?>" class="button button-large"><?php _e( 'Log In' ); ?></a></p>
     398<?php
     399}
     400else{
     401
     402?>
     403<h1><?php _e( 'Error!' ); ?></h1>
    397404
     405<p><?php _e( 'There is some issue with your database access.' ); ?></p>
    398406<?php
     407
     408}
     409
    399410                }
    400411                break;
    401412}