Coding Standards: Improve the readability of get_the_modified_author().

Props promz.
Fixes #44951.


Built from https://develop.svn.wordpress.org/trunk@44461


git-svn-id: http://core.svn.wordpress.org/trunk@44292 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Gary Pendergast 2019-01-08 05:50:49 +00:00
parent 12b800788e
commit 54617423e7
2 changed files with 4 additions and 2 deletions

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

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.1-alpha-44460';
$wp_version = '5.1-alpha-44461';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.