Merge pull request #25208 from dsmithweb/fix-25207-broken-link

Update "account erasure request" links in Accounts&Privacy settings
This commit is contained in:
Claudio Sanches 2019-12-10 22:11:59 -03:00 committed by GitHub
commit 53a2cba318
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class WC_Settings_Accounts extends WC_Settings_Page {
public function get_settings() {
$erasure_text = esc_html__( 'account erasure request', 'woocommerce' );
if ( current_user_can( 'manage_privacy_options' ) ) {
$erasure_text = sprintf( '<a href="%s">%s</a>', esc_url( admin_url( 'tools.php?page=remove_personal_data' ) ), $erasure_text );
$erasure_text = sprintf( '<a href="%s">%s</a>', esc_url( admin_url( 'erase-personal-data.php' ) ), $erasure_text );
}
$account_settings = array(