Use correct image value

This commit is contained in:
Gerhard 2021-10-07 10:58:51 +02:00
parent f66ae69a24
commit 58c26ff11f
No known key found for this signature in database
GPG Key ID: 147F2060AE23A9A8
2 changed files with 3 additions and 2 deletions

View File

@ -894,8 +894,8 @@ class WC_Admin_Addons {
$formatted_promotions[] = array(
'title' => $locale->title,
'description' => $locale->description,
'image' => $locale->image,
'image_alt' => $locale->img_alt,
'image' => ( 'http' === substr( $locale->image, 0, 4 ) ) ? $locale->image : WC()->plugin_url() . $locale->image,
'image_alt' => $locale->image_alt,
'actions' => $promotion_actions,
);
}

View File

@ -81,6 +81,7 @@ $current_section_name = __( 'Browse Categories', 'woocommerce' );
<?php endif; ?>
<?php if ( '_featured' !== $current_section && $addons ) : ?>
<?php
print_r( $promotions, true );
if ( ! empty( $promotions ) && WC()->is_wc_admin_active() ) {
}