[wp-trac] [WordPress Trac] #44396: Inconsistent use of blogname and sitename in Privacy emails

WordPress Trac noreply at wordpress.org
Mon Jun 18 14:58:11 UTC 2018


#44396: Inconsistent use of blogname and sitename in Privacy emails
--------------------------+-----------------------------
 Reporter:  desrosj       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Privacy       |    Version:  4.9.6
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:  multisite     |
--------------------------+-----------------------------
 In the core privacy email notifications, there is inconsistent use of
 `get_option( 'blogname' )` and `get_option( 'sitename' )`.

 In `_wp_privacy_send_erasure_fulfillment_notification()` and
 `_wp_privacy_send_request_confirmation_notification()`, the `$email_data`
 array has an index for `sitename` that is set to blog name. The subject is
 also set to blog name.

 In `wp_send_user_request()`, the `$email_data` array has an index for
 `site_name` that is set to the site name if on multisite, and blog name
 for single sites. Further down in the function, the blog name is always
 used for the email subject.

 The value used for these should be consistent across all privacy emails.

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


More information about the wp-trac mailing list