Merge pull request #12012 from woocommerce/fix-add-ons
Only display image if src is provided
This commit is contained in:
commit
514d8899ba
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue