WordPress.org

Make WordPress Core

Changeset 8714


Ignore:
Timestamp:
08/22/08 20:50:54 (6 years ago)
Author:
ryan
Message:

Fix Image alignment input value. Props MtDewVirus. fixes #7573

File:
1 edited

Legend:

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

    r8670 r8714  
    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>"; 
Note: See TracChangeset for help on using the changeset viewer.