WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/09/2021 01:34:09 AM (6 months 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/wpPrivacySendErasureFulfillmentNotification.php

    r50969 r51129  
    211211     */
    212212    public function test_email_subject_should_be_filterable() {
    213         add_filter( 'user_erasure_complete_email_subject', array( $this, 'filter_email_subject' ) );
     213        add_filter( 'user_erasure_fulfillment_email_subject', array( $this, 'filter_email_subject' ) );
    214214        _wp_privacy_send_erasure_fulfillment_notification( self::$request_id );
    215215
     
    237237     */
    238238    public function test_email_body_text_should_be_filterable() {
    239         add_filter( 'user_confirmed_action_email_content', array( $this, 'filter_email_body_text' ) );
     239        add_filter( 'user_erasure_fulfillment_email_content', array( $this, 'filter_email_body_text' ) );
    240240        _wp_privacy_send_erasure_fulfillment_notification( self::$request_id );
    241241
     
    265265     */
    266266    public function test_email_headers_should_be_filterable() {
    267         add_filter( 'user_erasure_complete_email_headers', array( $this, 'modify_email_headers' ) );
     267        add_filter( 'user_erasure_fulfillment_email_headers', array( $this, 'modify_email_headers' ) );
    268268        _wp_privacy_send_erasure_fulfillment_notification( self::$request_id );
    269269
Note: See TracChangeset for help on using the changeset viewer.