Changeset 35435
- Timestamp:
- 10/29/2015 09:28:39 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment-functions.php
r35339 r35435 2743 2743 $comment_author_email = $user->user_email; 2744 2744 $comment_author_url = $user->user_url; 2745 $user_id = $user->ID; 2745 2746 if ( current_user_can( 'unfiltered_html' ) ) { 2746 2747 if ( ! isset( $comment_data['_wp_unfiltered_html_comment'] ) … … 2779 2780 'comment_type', 2780 2781 'comment_parent', 2781 'user_ ID'2782 'user_id' 2782 2783 ); 2783 2784 -
trunk/tests/phpunit/tests/comment-submission.php
r35244 r35435 177 177 $this->assertSame( $user->user_email, $comment->comment_author_email ); 178 178 $this->assertSame( $user->user_url, $comment->comment_author_url ); 179 $this->assertSame( $user->ID, intval( $comment->user_id ) ); 179 180 180 181 } … … 199 200 $this->assertSame( 'comment@example.org', $comment->comment_author_email ); 200 201 $this->assertSame( 'http://user.example.org', $comment->comment_author_url ); 202 $this->assertSame( '0', $comment->user_id ); 201 203 202 204 }
Note: See TracChangeset
for help on using the changeset viewer.