[wp-trac] [WordPress Trac] #16058: Error massage HTML tags escaped

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 1 12:31:09 UTC 2011


#16058: Error massage HTML tags escaped
--------------------------+-----------------------------
 Reporter:  mako09        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 esc_html() is used in the line 821 of wp-admin/includes/file.php.  But the
 default message defined in 3 lines above has HTML tags.
 {{{
         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>';
         }
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16058>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list