From d4be2db521aa2d8883dad9e8cdca2d677891ada1 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 2 May 2018 01:08:25 +0000 Subject: [PATCH] Privacy: make the emails in export and erasure list-tables clickable. Props birgire. Merges [43057] to the 4.9 branch. See #43911. Built from https://develop.svn.wordpress.org/branches/4.9@43086 git-svn-id: http://core.svn.wordpress.org/branches/4.9@42915 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/user.php | 6 +++--- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-admin/includes/user.php b/wp-admin/includes/user.php index a0184906fb..d400bceb39 100644 --- a/wp-admin/includes/user.php +++ b/wp-admin/includes/user.php @@ -1247,7 +1247,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() ) ); } /** @@ -1334,7 +1334,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 ) ); } /** @@ -1425,7 +1425,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 ) ); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 939e908d3a..81888b80a7 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9.6-alpha-43084'; +$wp_version = '4.9.6-alpha-43086'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.