From 429aaa4a5709b24049a5cdac8e84831b80a785b6 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Tue, 1 May 2018 17:11:43 +0000 Subject: [PATCH] Privacy: make the emails in export and erasure list-tables clickable. Props birgire. See #43911. git-svn-id: https://develop.svn.wordpress.org/trunk@43057 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/user.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/includes/user.php b/src/wp-admin/includes/user.php index 5d1e963dd3..e242322e35 100644 --- a/src/wp-admin/includes/user.php +++ b/src/wp-admin/includes/user.php @@ -1264,7 +1264,7 @@ abstract class WP_Privacy_Requests_Table extends WP_List_Table { * @return string */ public function column_email( $item ) { - return sprintf( '%1$s %2$s', $item->email, $this->row_actions( array() ) ); + return sprintf( '%2$s %3$s', esc_url( 'mailto:' . $item->email ), $item->email, $this->row_actions( array() ) ); } /** @@ -1354,7 +1354,7 @@ class WP_Privacy_Data_Export_Requests_Table extends WP_Privacy_Requests_Table { 'download_data' => $download_data_markup, ); - return sprintf( '%1$s %2$s', $item->email, $this->row_actions( $row_actions ) ); + return sprintf( '%2$s %3$s', esc_url( 'mailto:' . $item->email ), $item->email, $this->row_actions( $row_actions ) ); } /** @@ -1466,7 +1466,7 @@ class WP_Privacy_Data_Removal_Requests_Table extends WP_Privacy_Requests_Table { ); } - return sprintf( '%1$s %2$s', $item->email, $this->row_actions( $row_actions ) ); + return sprintf( '%2$s %3$s', esc_url( 'mailto:' . $item->email ), $item->email, $this->row_actions( $row_actions ) ); } /**