Posts, Post types: Remove emails from post-by-email logs.

Props paulkevan, xknown, martinkrcho, peterwilsoncc.
Merges [54523] to the 6.0 branch.

Built from https://develop.svn.wordpress.org/branches/6.0@54533


git-svn-id: http://core.svn.wordpress.org/branches/6.0@54088 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb 2022-10-17 12:20:09 +00:00
parent 84c1c0c7da
commit 4167f814bc
2 changed files with 1 additions and 3 deletions

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.0.3-alpha-54532';
$wp_version = '6.0.3-alpha-54533';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

View File

@ -137,8 +137,6 @@ for ( $i = 1; $i <= $count; $i++ ) {
}
$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;