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

git-svn-id: http://svn.automattic.com/wordpress/trunk@8714 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-08-22 20:50:54 +00:00
parent ff403dd4bc
commit 9bd5723c66
1 changed files with 1 additions and 1 deletions

View File

@ -530,7 +530,7 @@ function image_align_input_fields($post, $checked='') {
$out = array();
foreach ($alignments as $name => $label) {
$out[] = "<input type='radio' name='attachments[{$post->ID}][align]' id='image-align-{$name}-{$post->ID}' value='none'".
$out[] = "<input type='radio' name='attachments[{$post->ID}][align]' id='image-align-{$name}-{$post->ID}' value='$name'".
( $checked == $name ? " checked='checked'" : "" ) .
" /><label for='image-align-{$name}-{$post->ID}' class='align image-align-{$name}-label'>" . __($label) . "</label>";
}