Make WordPress Core


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

Introduce WP_User::exists(). see #20372

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/ajax-actions.php

    r20332 r20378  
    743743
    744744    $user = wp_get_current_user();
    745     if ( $user->ID ) {
     745    if ( $user->exists() ) {
    746746        $user_ID = $user->ID;
    747747        $comment_author       = $wpdb->escape($user->display_name);
Note: See TracChangeset for help on using the changeset viewer.