Make WordPress Core


Ignore:
Timestamp:
11/14/2011 09:35:44 PM (15 years ago)
Author:
nacin
Message:

Don't use $user_identity global. props duck_. fixes #19146.

File:
1 edited

Legend:

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

    r18633 r19284  
    15091509 */
    15101510function comment_form( $args = array(), $post_id = null ) {
    1511     global $user_identity, $id;
     1511    global $id;
    15121512
    15131513    if ( null === $post_id )
     
    15171517
    15181518    $commenter = wp_get_current_commenter();
     1519    $user = wp_get_current_user();
     1520    $user_identity = ! empty( $user->ID ) ? $user->display_name : '';
    15191521
    15201522    $req = get_option( 'require_name_email' );
Note: See TracChangeset for help on using the changeset viewer.