Make WordPress Core

Changeset 17200


Ignore:
Timestamp:
01/01/2011 10:14:42 PM (14 years ago)
Author:
nacin
Message:

Don't esc_html the default error string. props SergeyBiryukov, fixes #16058.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/file.php

    r17098 r17200  
    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
Note: See TracChangeset for help on using the changeset viewer.