WordPress.org

Make WordPress Core

Ticket #8481: checked-upgrade.patch

File checked-upgrade.patch, 456 bytes (added by chmac, 5 years ago)
  • wp-admin/includes/template.php

     
    360360 * @param unknown_type $current 
    361361 */ 
    362362function checked( $checked, $current) { 
    363         if ( $checked == $current) 
     363        if ( (is_array($current) && in_array($checked, $current)) || $checked == $current) 
    364364                echo ' checked="checked"'; 
    365365} 
    366366