Posts, Post types: Remove emails from post-by-email logs.
Props paulkevan, xknown, martinkrcho, peterwilsoncc. Built from https://develop.svn.wordpress.org/trunk@54523 git-svn-id: http://core.svn.wordpress.org/trunk@54078 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
89804fb0db
commit
45a6b73042
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.1-RC1-54522';
|
$wp_version = '6.1-RC1-54523';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
|
@ -137,8 +137,6 @@ for ( $i = 1; $i <= $count; $i++ ) {
|
||||||
}
|
}
|
||||||
$author = sanitize_email( $author );
|
$author = sanitize_email( $author );
|
||||||
if ( is_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 );
|
$userdata = get_user_by( 'email', $author );
|
||||||
if ( ! empty( $userdata ) ) {
|
if ( ! empty( $userdata ) ) {
|
||||||
$post_author = $userdata->ID;
|
$post_author = $userdata->ID;
|
||||||
|
|
Loading…
Reference in New Issue