Changeset 11233 for trunk/wp-admin/includes/media.php
- Timestamp:
- 05/07/2009 05:28:51 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/media.php
r11204 r11233 748 748 * @return unknown 749 749 */ 750 function image_align_input_fields( $post, $checked='') {750 function image_align_input_fields( $post, $checked = '' ) { 751 751 752 752 $alignments = array('none' => __('None'), 'left' => __('Left'), 'center' => __('Center'), 'right' => __('Right')); 753 if ( !array_key_exists( $checked, $alignments) )753 if ( !array_key_exists( (string) $checked, $alignments ) ) 754 754 $checked = 'none'; 755 755 … … 773 773 * @return unknown 774 774 */ 775 function image_size_input_fields( $post, $checked='') {775 function image_size_input_fields( $post, $checked = '' ) { 776 776 777 777 // get a list of the actual pixel dimensions of each possible intermediate version of this image 778 778 $size_names = array('thumbnail' => __('Thumbnail'), 'medium' => __('Medium'), 'large' => __('Large'), 'full' => __('Full size')); 779 779 780 foreach ( $size_names as $size => $name ) {780 foreach ( $size_names as $size => $name ) { 781 781 $downsize = image_downsize($post->ID, $size); 782 782
Note: See TracChangeset
for help on using the changeset viewer.