From ab3b19d94e0eed05d00eddc0d75026aa22e7b496 Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Tue, 8 Jan 2019 05:49:50 +0000 Subject: [PATCH] Coding Standards: Improve the readability of `get_the_modified_author()`. Props promz. Fixes #44951. git-svn-id: https://develop.svn.wordpress.org/trunk@44461 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/author-template.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/author-template.php b/src/wp-includes/author-template.php index 43945cde8a..3ad3f90ce0 100644 --- a/src/wp-includes/author-template.php +++ b/src/wp-includes/author-template.php @@ -88,7 +88,9 @@ function the_author( $deprecated = '', $deprecated_echo = true ) { * @return string|void The author's display name. */ function get_the_modified_author() { - if ( $last_id = get_post_meta( get_post()->ID, '_edit_last', true ) ) { + $last_id = get_post_meta( get_post()->ID, '_edit_last', true ); + + if ( $last_id ) { $last_user = get_userdata( $last_id ); /**