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

git-svn-id: https://develop.svn.wordpress.org/trunk@17200 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2011-01-01 22:14:42 +00:00
parent 7fe3731637
commit bce405d0f2
1 changed files with 2 additions and 2 deletions

View File

@ -970,8 +970,8 @@ function request_filesystem_credentials($form_post, $type = '', $error = false,
if ( $error ) {
$error_string = __('<strong>Error:</strong> There was an error connecting to the server, Please verify the settings are correct.');
if ( is_wp_error($error) )
$error_string = $error->get_error_message();
echo '<div id="message" class="error"><p>' . esc_html( $error_string ) . '</p></div>';
$error_string = esc_html( $error->get_error_message() );
echo '<div id="message" class="error"><p>' . $error_string . '</p></div>';
}
$types = array();