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
This commit is contained in:
Gary Pendergast 2019-01-08 05:49:50 +00:00
parent 34d4988db6
commit ab3b19d94e

View File

@ -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 );
/**