do not depend on title for rendering connect message.

This commit is contained in:
David Remer 2020-07-01 16:50:14 +03:00
parent 3a4b942663
commit 0c2de24f37

View file

@ -29,10 +29,9 @@ class ConnectAdminNotice
$message = sprintf(
/* translators: %1$s the gateway name */
__(
'%1$s is almost ready. To get started, <a href="%2$s">connect your account</a>.',
'PayPal Payments is almost ready. To get started, <a href="%2$s">connect your account</a>.',
'woocommerce-paypal-commerce-gateway'
),
$this->settings->has('title') ? $this->settings->get('title') : '',
// TODO: find a better way to get the url
admin_url('admin.php?page=wc-settings&tab=checkout&section=ppcp-gateway')
);