Make WordPress Core

Ticket #16058: 16058.2.patch

File 16058.2.patch, 708 bytes (added by SergeyBiryukov, 14 years ago)
  • wp-admin/includes/file.php

     
    970970        if ( $error ) {
    971971                $error_string = __('<strong>Error:</strong> There was an error connecting to the server, Please verify the settings are correct.');
    972972                if ( is_wp_error($error) )
    973                         $error_string = $error->get_error_message();
    974                 echo '<div id="message" class="error"><p>' . esc_html( $error_string ) . '</p></div>';
     973                        $error_string = esc_html( $error->get_error_message() );
     974                echo '<div id="message" class="error"><p>' . $error_string . '</p></div>';
    975975        }
    976976
    977977        $types = array();