Don't esc_html the default error string. props SergeyBiryukov, fixes #16058.
git-svn-id: http://svn.automattic.com/wordpress/trunk@17200 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a6e8ff128f
commit
53d0af84b0
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue