WordPress.org

Make WordPress Core

Ticket #7573: 7573.diff

File 7573.diff, 663 bytes (added by MtDewVirus, 6 years ago)
  • media.php

     
    530530        $out = array(); 
    531531        foreach ($alignments as $name => $label) { 
    532532         
    533                 $out[] = "<input type='radio' name='attachments[{$post->ID}][align]' id='image-align-{$name}-{$post->ID}' value='none'". 
     533                $out[] = "<input type='radio' name='attachments[{$post->ID}][align]' id='image-align-{$name}-{$post->ID}' value='$name'". 
    534534                        ( $checked == $name ? " checked='checked'" : "" ) .  
    535535                        " /><label for='image-align-{$name}-{$post->ID}' class='align image-align-{$name}-label'>" . __($label) . "</label>"; 
    536536        }