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
This commit is contained in:
Sergey Biryukov 2018-05-02 01:08:25 +00:00
parent 14d25f6094
commit d4be2db521
2 changed files with 4 additions and 4 deletions

View File

@ -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( '<a href="%1$s">%2$s</a> %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( '<a href="%1$s">%2$s</a> %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( '<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 = '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.