Make WordPress Core

Changeset 44461


Ignore:
Timestamp:
01/08/2019 05:49:50 AM (6 years ago)
Author:
pento
Message:

Coding Standards: Improve the readability of get_the_modified_author().

Props promz.
Fixes #44951.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/author-template.php

    r43571 r44461  
    8989 */
    9090function get_the_modified_author() {
    91     if ( $last_id = get_post_meta( get_post()->ID, '_edit_last', true ) ) {
     91    $last_id = get_post_meta( get_post()->ID, '_edit_last', true );
     92
     93    if ( $last_id ) {
    9294        $last_user = get_userdata( $last_id );
    9395
Note: See TracChangeset for help on using the changeset viewer.