desireeM
Background of the issue:
admin notice contains invalid URL:
<a class="notice-dismiss" href="/wp-admin/&wcml_action=dismiss_cart_warning">
Symptoms:
The URL in the admin notice is incorrect. I expected to see: /wp-admin/?wcml_action=dismiss_cart_warning, but instead, I got: /wp-admin/&wcml_action=dismiss_cart_warning.
Questions:
Please fix this.
Marcel
Supporter
Languages:
English (English )
German (Deutsch )
Timezone:
Europe/Madrid (GMT+01:00)
Hi,
thank you very much for your report. I have forwarded them to our development team and will keep you updated as soon as we receive feedback.
Best regards,
Marcel
Marcel
Supporter
Languages:
English (English )
German (Deutsch )
Timezone:
Europe/Madrid (GMT+01:00)
Hi,
We plan to integrate this in one of the upcoming releases. The issue arises because certain pages, such as the dashboard, lack URL arguments. In the meantime, you can use the following workaround:
$message = '<div class="message error otgs-is-dismissible">';
$message .= '<p>';
$message .= sprintf( $reset_cart_message, $reset_cart_configure_link );
$message .= '</p>';
if (strpos($request_url, '?') !== false) {
$message .= '<a class="notice-dismiss" href="' . $request_url . '&wcml_action=dismiss_cart_warning"><span class="screen-reader-text">' . esc_html__( 'Dismiss', 'woocommerce-multilingual' ) . '</a></span>';
} else {
$message .= '<a class="notice-dismiss" href="' . $request_url . '?wcml_action=dismiss_cart_warning"><span class="screen-reader-text">' . esc_html__( 'Dismiss', 'woocommerce-multilingual' ) . '</a></span>';
}
$message .= '</div>';
Best Regards,
Marcel
Marcel
Supporter
Languages:
English (English )
German (Deutsch )
Timezone:
Europe/Madrid (GMT+01:00)
Yes, you will get informed here once it's available.
Best Regards,
Marcel