[wp-trac] [WordPress Trac] #44940: Empty confirm_key property in WP_User_Request when hooking in the user_request_action_email_content

WordPress Trac noreply at wordpress.org
Thu Sep 13 14:42:39 UTC 2018


#44940: Empty confirm_key property in WP_User_Request when hooking in the
user_request_action_email_content
---------------------------+--------------------------------------
 Reporter:  dingo_bastard  |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Privacy        |    Version:  4.9.8
 Severity:  major          |   Keywords:  dev-feedback 2nd-opinion
  Focuses:  privacy        |
---------------------------+--------------------------------------
 I need to change the look (and the url) of the link for the request
 personal data deletion/export, so I hooked to
 `user_request_action_email_content` filter, and inspected the
 `$email_data` so that I can get the request `ID` and the `confirm_key` in
 my email.

 But upon inspecting the data provided I can see the confirmation key in
 the `confirm_url` key of the `$email_data`, but the field in the object is
 empty.

 This is intentional or a bug?

 {{{#!php
 Array
 (
     [request] => WP_User_Request Object
         (
             [ID] => 334
             [user_id] => 20
             [email] => my.email.[at]example.com
             [action_name] => export_personal_data
             [status] => request-pending
             [created_timestamp] => 1536847994
             [modified_timestamp] => 1536847994
             [confirmed_timestamp] => 0
             [completed_timestamp] => 0
             [request_data] => Array
                 (
                 )

             [confirm_key] =>
         )

     [email] => my.email.[at]example.com
     [description] => Export Personal Data
     [confirm_url] => https://my-site.com/wp-
 login.php?action=confirmaction&request_id=334&confirm_key=wjjeDD3mx5J02U51F7Zt
     [sitename] => My Cool site
     [siteurl] => https://my-site.com/
 )
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44940>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list