[wp-trac] [WordPress Trac] #44314: `user_confirmed_action_email_content` filter run on two different strings

WordPress Trac noreply at wordpress.org
Sat Oct 24 22:11:40 UTC 2020


#44314: `user_confirmed_action_email_content` filter run on two different strings
-------------------------------------------------+-------------------------
 Reporter:  desrosj                              |       Owner:  garrett-
                                                 |  eclipse
     Type:  defect (bug)                         |      Status:  accepted
 Priority:  normal                               |   Milestone:  5.6
Component:  Privacy                              |     Version:  4.9.6
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests needs-dev-  |     Focuses:
  note early                                     |
-------------------------------------------------+-------------------------
Changes (by hellofromTonya):

 * keywords:  has-patch has-unit-tests needs-dev-note early needs-testing =>
     has-patch has-unit-tests needs-dev-note early


Comment:

 Testing results

 Used the following filtered code:

 {{{#!php
 <?php
 // _wp_privacy_send_request_confirmation_notification
 add_filter( 'user_confirmed_action_email_content', function( $content ) {
 return $content . ' DEPRECATED'; } );
 add_filter( 'user_request_confirmed_email_content', function( $content ) {
 return $content . ' FILTERED'; } );

 // _wp_privacy_send_erasure_fulfillment_notification
 add_filter( 'user_erasure_complete_email_subject', function( $subject ) {
 return $subject . ' DEPRECATED'; } );
 add_filter( 'user_erasure_fulfillment_email_subject', function( $subject )
 { return $subject . ' FILTERED'; } );
 add_filter( 'user_erasure_fulfillment_email_content', function( $content )
 { return $content . ' FILTERED'; } );
 add_filter( 'user_erasure_complete_email_headers', function( $headers ) {
 return $headers; } );
 add_filter( 'user_erasure_fulfillment_email_headers', function( $headers )
 { return $headers; } );
 }}}


 The deprecated filters generated the following results in the `src/wp-
 content/debug.log` file:

 {{{
 [24-Oct-2020 21:32:01 UTC] PHP Deprecated:
 user_confirmed_action_email_content is <strong>deprecated</strong> since
 version 5.6.0! Use user_request_confirmed_email_content instead. in
 /var/www/src/wp-includes/functions.php on line 5211
 [24-Oct-2020 21:36:42 UTC] PHP Deprecated:
 user_erasure_complete_email_subject is <strong>deprecated</strong> since
 version 5.6.0! Use user_erasure_fulfillment_email_subject instead. in
 /var/www/src/wp-includes/functions.php on line 5211
 [24-Oct-2020 21:36:42 UTC] PHP Deprecated:
 user_confirmed_action_email_content is <strong>deprecated</strong> since
 version 5.6.0! Use user_erasure_fulfillment_email_content instead. in
 /var/www/src/wp-includes/functions.php on line 5211
 [24-Oct-2020 21:36:42 UTC] PHP Deprecated:
 user_erasure_complete_email_headers is <strong>deprecated</strong> since
 version 5.6.0! Use user_erasure_fulfillment_email_headers instead. in
 /var/www/src/wp-includes/functions.php on line 5211
 [24-Oct-2020 21:37:15 UTC] PHP Deprecated:
 user_confirmed_action_email_content is <strong>deprecated</strong> since
 version 5.6.0! Use user_request_confirmed_email_content instead. in
 /var/www/src/wp-includes/functions.php on line 5211
 [24-Oct-2020 21:39:30 UTC] PHP Deprecated:
 user_erasure_complete_email_subject is <strong>deprecated</strong> since
 version 5.6.0! Use user_erasure_fulfillment_email_subject instead. in
 /var/www/src/wp-includes/functions.php on line 5211
 [24-Oct-2020 21:39:30 UTC] PHP Deprecated:
 user_confirmed_action_email_content is <strong>deprecated</strong> since
 version 5.6.0! Use user_erasure_fulfillment_email_content instead. in
 /var/www/src/wp-includes/functions.php on line 5211
 [24-Oct-2020 21:39:30 UTC] PHP Deprecated:
 user_erasure_complete_email_headers is <strong>deprecated</strong> since
 version 5.6.0! Use user_erasure_fulfillment_email_headers instead. in
 /var/www/src/wp-includes/functions.php on line 5211
 }}}

 The emails received: See PDF attachment.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44314#comment:46>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list