Merge pull request #12012 from woocommerce/fix-add-ons

Only display image if src is provided
This commit is contained in:
Claudio Sanches 2016-10-04 13:23:00 -03:00 committed by GitHub
commit 514d8899ba
1 changed files with 5 additions and 3 deletions

View File

@ -287,9 +287,11 @@ class WC_Admin_Addons {
<div class="addons-small-dark-items">
<?php foreach ( $block->items as $item ) : ?>
<div class="addons-small-dark-item">
<?php if ( $item->image ) : ?>
<div class="addons-small-dark-item-icon">
<img class="addons-img" src="<?php echo esc_url( $item->image ); ?>" />
</div>
<?php endif; ?>
<?php
self::output_button(
$item->href,