Make WordPress Core


Ignore:
Timestamp:
06/09/2021 01:34:09 AM (3 years ago)
Author:
antpb
Message:

Privacy: Improve naming of user confimed action email filters.

The filters user_confirmed_action_email_content, user_erasure_complete_email_subject, and user_erasure_complete_email_headers have been deprecated.

They have been replaced with user_erasure_fulfillment_email_content, user_erasure_fulfillment_email_subject, and user_erasure_fulfillment_email_headers.

Props desrosj, garrett-eclipse, birgire, DrewAPicture, lifeforceinst, ocean90, pbiron, pento, coffee2code, TZ-Media, SergeyBiryukov, johnbillion, audrasjb, davidbaumwald, hellofromTonya, helen, xkon, antpb, peterwilsoncc, lukecarbis.
Fixes #44314.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/privacy/wpPrivacySendRequestConfirmationNotification.php

    r50969 r51129  
    179179        _wp_privacy_account_request_confirmed( $request_id );
    180180
    181         add_filter( 'user_confirmed_action_email_content', array( $this, 'modify_email_content' ), 10, 2 );
    182         _wp_privacy_send_request_confirmation_notification( $request_id );
    183         remove_filter( 'user_confirmed_action_email_content', array( $this, 'modify_email_content' ), 10 );
     181        add_filter( 'user_request_confirmed_email_content', array( $this, 'modify_email_content' ), 10, 2 );
     182        _wp_privacy_send_request_confirmation_notification( $request_id );
     183        remove_filter( 'user_request_confirmed_email_content', array( $this, 'modify_email_content' ), 10 );
    184184
    185185        $mailer = tests_retrieve_phpmailer_instance();
Note: See TracChangeset for help on using the changeset viewer.