Privacy: make the emails in export and erasure list-tables clickable.

Props birgire.
See #43911.
Built from https://develop.svn.wordpress.org/trunk@43057


git-svn-id: http://core.svn.wordpress.org/trunk@42886 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2018-05-01 17:12:22 +00:00
parent 3266b10d04
commit 2aa8414d09
2 changed files with 4 additions and 4 deletions

View File

@ -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( '<a href="%1$s">%2$s</a> %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( '<a href="%1$s">%2$s</a> %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( '<a href="%1$s">%2$s</a> %3$s', esc_url( 'mailto:' . $item->email ), $item->email, $this->row_actions( $row_actions ) );
}
/**

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.0-alpha-43056';
$wp_version = '5.0-alpha-43057';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.