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:
parent
ff403dd4bc
commit
9bd5723c66
|
@ -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>";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue