Changeset 58809
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment-template.php
r58755 r58809 30 30 $comment_id = (string) $comment_id; 31 31 } else { 32 $comment_id = ' ';32 $comment_id = '0'; 33 33 } 34 34 … … 234 234 $comment = get_comment( $comment_id ); 235 235 236 $comment_id = ! empty( $comment->comment_ID ) ? $comment->comment_ID : (string) $comment_id; 236 if ( ! empty( $comment->comment_ID ) ) { 237 $comment_id = $comment->comment_ID; 238 } elseif ( is_scalar( $comment_id ) ) { 239 $comment_id = (string) $comment_id; 240 } else { 241 $comment_id = '0'; 242 } 237 243 238 244 $comment_author_url = get_comment_author_url( $comment );
Note: See TracChangeset
for help on using the changeset viewer.