Skip to content

Commit

Permalink
Always allow Full Sized image option in image-popup. Fixes #60
Browse files Browse the repository at this point in the history
  • Loading branch information
carlthewebmaster committed Jan 29, 2013
1 parent a404a84 commit 02fa5fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions annotum-base/functions/tinymce-upload/image-popup.php
Expand Up @@ -203,14 +203,15 @@ function anno_popup_images_row_edit($attachment) {
'thumbnail' => _x('Thumbnail', 'size label for images', 'anno'),
'medium' => _x('Medium', 'size label for images', 'anno'),
'large' => _x('Large', 'size label for images', 'anno'),
'full' => _x('Full Size', 'size label for images', 'anno'),
);

// For small images, we won't have any image sizes displayed.
$size_displayed = false;
foreach ($sizes as $size_key => $size_label) {
$downsize = image_downsize($attachment->ID, $size_key);
$enabled = $downsize[3];
if ($enabled) {
if ($enabled || $size_key == 'full') {
$img_size_url = wp_get_attachment_image_src($attachment->ID, $size_key);
$img_size_url = $img_size_url[0];
$size_displayed = true;
Expand Down Expand Up @@ -274,4 +275,4 @@ function anno_popup_images_row_display($attachment) {
<?php
}

?>
?>

0 comments on commit 02fa5fa

Please sign in to comment.