Skip to content

Commit

Permalink
Coding Standards: Improve the readability of `get_the_modified_author…
Browse files Browse the repository at this point in the history
…()`.

Props promz.
Fixes #44951.



git-svn-id: https://develop.svn.wordpress.org/trunk@44461 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
pento committed Jan 8, 2019
1 parent 34d4988 commit ab3b19d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/wp-includes/author-template.php
Expand Up @@ -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 );

/**
Expand Down

0 comments on commit ab3b19d

Please sign in to comment.