Fix Image alignment input value. Props MtDewVirus. fixes #7573
git-svn-id: https://develop.svn.wordpress.org/trunk@8714 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
022998d2ca
commit
f9443848a3
@ -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
Block a user