Make WordPress Core

Changeset 41180


Ignore:
Timestamp:
07/28/2017 02:20:22 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Users: After [41027], assign $author_posts_url outside of the condition to simplify the logic.

See #38085.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-users-list-table.php

    r41161 r41180  
    418418
    419419            // Add a link to the user's author archive, if not empty.
    420             if ( $author_posts_url = get_author_posts_url( $user_object->ID ) ) {
     420            $author_posts_url = get_author_posts_url( $user_object->ID );
     421            if ( $author_posts_url ) {
    421422                $actions['view'] = sprintf(
    422423                    '<a href="%s" aria-label="%s">%s</a>',
Note: See TracChangeset for help on using the changeset viewer.