Remove unused "No order source data available." message (#46648)

* Remove unused "No order source data available." message.

* Add changelog.
This commit is contained in:
Gan Eng Chin 2024-04-17 00:05:10 +08:00 committed by GitHub
parent f0dfc87b44
commit efa43d9fcf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 6 deletions

View File

@ -0,0 +1,4 @@
Significance: minor
Type: tweak
Remove unused "No order source data available." message in Order Attribution feature.

View File

@ -66,12 +66,6 @@ class OrderAttribution {
public function output( WC_Order $order ) {
$meta = $this->filter_meta_data( $order->get_meta_data() );
// If we don't have any meta to show, return.
if ( empty( $meta ) ) {
esc_html_e( 'No order source data available.', 'woocommerce' );
return;
}
$this->format_meta_data( $meta );
// No more details if there is only the origin value - this is for unknown source types.