Make WordPress Core

Changeset 43086


Ignore:
Timestamp:
05/02/2018 01:07:43 AM (7 years ago)
Author:
SergeyBiryukov
Message:

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

Props birgire.
Merges [43057] to the 4.9 branch.
See #43911.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-admin/includes/user.php

    r43084 r43086  
    12481248     */
    12491249    public function column_email( $item ) {
    1250         return sprintf( '%1$s %2$s', $item->email, $this->row_actions( array() ) );
     1250        return sprintf( '<a href="%1$s">%2$s</a> %3$s', esc_url( 'mailto:' . $item->email ), $item->email, $this->row_actions( array() ) );
    12511251    }
    12521252
     
    13351335        );
    13361336
    1337         return sprintf( '%1$s %2$s', $item->email, $this->row_actions( $row_actions ) );
     1337        return sprintf( '<a href="%1$s">%2$s</a> %3$s', esc_url( 'mailto:' . $item->email ), $item->email, $this->row_actions( $row_actions ) );
    13381338    }
    13391339
     
    14261426        }
    14271427
    1428         return sprintf( '%1$s %2$s', $item->email, $this->row_actions( $row_actions ) );
     1428        return sprintf( '<a href="%1$s">%2$s</a> %3$s', esc_url( 'mailto:' . $item->email ), $item->email, $this->row_actions( $row_actions ) );
    14291429    }
    14301430
Note: See TracChangeset for help on using the changeset viewer.