[wp-hackers] Bug in automatic/ftp plugin update

Harald Nesland hn at sacharis.no
Fri Nov 6 09:24:00 UTC 2009


Hi,

Sorry if this isn't the right place, or if it is already fixed.

Just a minor spelling error ;-)


Index: wp-admin/includes/file.php
===================================================================
--- wp-admin/includes/file.php  (revision 12151)
+++ wp-admin/includes/file.php  (working copy)
@@ -840,8 +840,8 @@
         $disabled = defined('FTP_SSL') || defined('FTP_SSH') ? '' : ' 
disabled="disabled"';

         foreach ( $types as $name => $text ) : ?>
-       <label for="<?php echo esc_atr($name) ?>">
-               <input type="radio" name="connection_type" id="<?php 
echo esc_atr($name) ?>" value="<?php echo esc_atr($name) ?>" <?php 
checked($name, $connection_type); echo $disabled; ?>/>
+       <label for="<?php echo esc_attr($name) ?>">
+               <input type="radio" name="connection_type" id="<?php 
echo esc_attr($name) ?>" value="<?php echo esc_attr($name) ?>" <?php 
checked($name, $connection_type); echo $disabled; ?>/>
                 <?php echo $text ?>
         </label>
         <?php endforeach; ?>




More information about the wp-hackers mailing list