WordPress.org

Make WordPress Core

Ticket #43911: 43911-mailto-links.diff

File 43911-mailto-links.diff, 1.3 KB (added by xkon, 3 years ago)
  • src/wp-admin/includes/user.php

    diff --git src/wp-admin/includes/user.php src/wp-admin/includes/user.php
    index 5d1e963..e242322 100644
    abstract class WP_Privacy_Requests_Table extends WP_List_Table { 
    12641264         * @return string
    12651265         */
    12661266        public function column_email( $item ) {
    1267                 return sprintf( '%1$s %2$s', $item->email, $this->row_actions( array() ) );
     1267                return sprintf( '<a href="%1$s">%2$s</a> %3$s', esc_url( 'mailto:' . $item->email ), $item->email, $this->row_actions( array() ) );
    12681268        }
    12691269
    12701270        /**
    class WP_Privacy_Data_Export_Requests_Table extends WP_Privacy_Requests_Table { 
    13541354                        'download_data' => $download_data_markup,
    13551355                );
    13561356
    1357                 return sprintf( '%1$s %2$s', $item->email, $this->row_actions( $row_actions ) );
     1357                return sprintf( '<a href="%1$s">%2$s</a> %3$s', esc_url( 'mailto:' . $item->email ), $item->email, $this->row_actions( $row_actions ) );
    13581358        }
    13591359
    13601360        /**
    class WP_Privacy_Data_Removal_Requests_Table extends WP_Privacy_Requests_Table { 
    14661466                        );
    14671467                }
    14681468
    1469                 return sprintf( '%1$s %2$s', $item->email, $this->row_actions( $row_actions ) );
     1469                return sprintf( '<a href="%1$s">%2$s</a> %3$s', esc_url( 'mailto:' . $item->email ), $item->email, $this->row_actions( $row_actions ) );
    14701470        }
    14711471
    14721472        /**