Make WordPress Core


Ignore:
Timestamp:
03/11/2010 05:12:23 PM (15 years ago)
Author:
nacin
Message:

Use disabled() form helper. fixes #12581

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/media.php

    r13612 r13661  
    859859            }
    860860
    861             $html = "<div class='image-size-item'><input type='radio' " . ( $enabled ? '' : "disabled='disabled' " ) . "name='attachments[$post->ID][image-size]' id='{$css_id}' value='{$size}'$checked />";
     861            $html = "<div class='image-size-item'><input type='radio' " . disabled( $enabled, false, false ) . "name='attachments[$post->ID][image-size]' id='{$css_id}' value='{$size}'$checked />";
    862862
    863863            $html .= "<label for='{$css_id}'>$label</label>";
Note: See TracChangeset for help on using the changeset viewer.