Use correct image value
This commit is contained in:
parent
f66ae69a24
commit
58c26ff11f
|
@ -894,8 +894,8 @@ class WC_Admin_Addons {
|
||||||
$formatted_promotions[] = array(
|
$formatted_promotions[] = array(
|
||||||
'title' => $locale->title,
|
'title' => $locale->title,
|
||||||
'description' => $locale->description,
|
'description' => $locale->description,
|
||||||
'image' => $locale->image,
|
'image' => ( 'http' === substr( $locale->image, 0, 4 ) ) ? $locale->image : WC()->plugin_url() . $locale->image,
|
||||||
'image_alt' => $locale->img_alt,
|
'image_alt' => $locale->image_alt,
|
||||||
'actions' => $promotion_actions,
|
'actions' => $promotion_actions,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,6 +81,7 @@ $current_section_name = __( 'Browse Categories', 'woocommerce' );
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if ( '_featured' !== $current_section && $addons ) : ?>
|
<?php if ( '_featured' !== $current_section && $addons ) : ?>
|
||||||
<?php
|
<?php
|
||||||
|
print_r( $promotions, true );
|
||||||
if ( ! empty( $promotions ) && WC()->is_wc_admin_active() ) {
|
if ( ! empty( $promotions ) && WC()->is_wc_admin_active() ) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue