WordPress.org

Make WordPress Core

Changeset 43057


Ignore:
Timestamp:
05/01/2018 05:11:43 PM (3 years ago)
Author:
azaozz
Message:

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

Props birgire.
See #43911.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/user.php

    r43012 r43057  
    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
     
    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
     
    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
Note: See TracChangeset for help on using the changeset viewer.