" . __('all image sizes') . "\n"; $image_size_opt .= "\n"; $meta = wp_get_attachment_metadata($post_id); if ( is_array($meta) && is_array($meta['sizes']) ) { $sizes = apply_filters('intermediate_image_sizes', array('thumbnail', 'medium', 'large')); $size_names = array( 'thumbnail' => __('thumbnail'), 'medium' => __('medium'), 'large' => __('large') ); foreach ( $sizes as $size ) { if ( array_key_exists($size, $meta['sizes']) ) { $size_name = isset($size_names[$size]) ? $size_names[$size] : $size; $image_size_opt .= "\n"; } } } ?>
×
)" class="button" value="" /> )" class="button-primary" value="" />