Changeset 54071 for trunk/src/wp-admin/includes/media.php
- Timestamp:
- 09/05/2022 05:17:21 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/media.php
r53888 r54071 1156 1156 } 1157 1157 1158 $out = array();1158 $output = array(); 1159 1159 1160 1160 foreach ( $alignments as $name => $label ) { 1161 $name = esc_attr( $name );1162 $out [] = "<input type='radio' name='attachments[{$post->ID}][align]' id='image-align-{$name}-{$post->ID}' value='$name'" .1161 $name = esc_attr( $name ); 1162 $output[] = "<input type='radio' name='attachments[{$post->ID}][align]' id='image-align-{$name}-{$post->ID}' value='$name'" . 1163 1163 ( $checked == $name ? " checked='checked'" : '' ) . 1164 1164 " /><label for='image-align-{$name}-{$post->ID}' class='align image-align-{$name}-label'>$label</label>"; 1165 1165 } 1166 1166 1167 return implode( "\n", $out );1167 return implode( "\n", $output ); 1168 1168 } 1169 1169 … … 1200 1200 } 1201 1201 1202 $out = array();1202 $output = array(); 1203 1203 1204 1204 foreach ( $size_names as $size => $label ) { … … 1236 1236 $html .= '</div>'; 1237 1237 1238 $out [] = $html;1238 $output[] = $html; 1239 1239 } 1240 1240 … … 1242 1242 'label' => __( 'Size' ), 1243 1243 'input' => 'html', 1244 'html' => implode( "\n", $out ),1244 'html' => implode( "\n", $output ), 1245 1245 ); 1246 1246 }
Note: See TracChangeset
for help on using the changeset viewer.