fix embed images in get_document_html()

This commit is contained in:
Leo Germani 2018-04-17 17:58:26 -03:00
parent 69d4409c04
commit 9685508d39
1 changed files with 2 additions and 2 deletions

View File

@ -509,9 +509,9 @@ class Item extends Entity {
if ( wp_attachment_is_image($this->get_document()) ) {
$img = wp_get_attachment_image($this->get_document(), $img_size);
$img_full = wp_get_attachment_image($this->get_document(), 'full');
$img_full = wp_get_attachment_url($this->get_document());
$output .= sprintf("<a href='%s' target='blank'>%s</a>", $url, $img);
$output .= sprintf("<a href='%s' target='blank'>%s</a>", $img_full, $img);
} else {