Skip to content

Commit

Permalink
Posts, Post types: Remove emails from post-by-email logs.
Browse files Browse the repository at this point in the history
Props paulkevan, xknown, martinkrcho, peterwilsoncc.


git-svn-id: https://develop.svn.wordpress.org/trunk@54523 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
audrasjb committed Oct 17, 2022
1 parent 506eee1 commit 5fcdee1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/wp-mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,6 @@
}
$author = sanitize_email( $author );
if ( is_email( $author ) ) {
/* translators: %s: Post author email address. */
echo '<p>' . sprintf( __( 'Author is %s' ), $author ) . '</p>';
$userdata = get_user_by( 'email', $author );
if ( ! empty( $userdata ) ) {
$post_author = $userdata->ID;
Expand Down

0 comments on commit 5fcdee1

Please sign in to comment.