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:
parent
12b800788e
commit
54617423e7
|
@ -88,7 +88,9 @@ function the_author( $deprecated = '', $deprecated_echo = true ) {
|
||||||
* @return string|void The author's display name.
|
* @return string|void The author's display name.
|
||||||
*/
|
*/
|
||||||
function get_the_modified_author() {
|
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 );
|
$last_user = get_userdata( $last_id );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue