WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/06/2012 07:18:45 PM (10 years ago)
Author:
ryan
Message:

Introduce WP_User::exists(). see #20372

File:
1 edited

Legend:

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

    r19712 r20378  
    15181518    $commenter = wp_get_current_commenter();
    15191519    $user = wp_get_current_user();
    1520     $user_identity = ! empty( $user->ID ) ? $user->display_name : '';
     1520    $user_identity = $user->exists() ? $user->display_name : '';
    15211521
    15221522    $req = get_option( 'require_name_email' );
Note: See TracChangeset for help on using the changeset viewer.