Changeset 50768
- Timestamp:
- 04/18/2021 01:54:00 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-comments-list-table.php
r49193 r50768 62 62 * 63 63 * @param string $name Comment author name. 64 * @param int $comment_ IDComment ID.64 * @param int $comment_id Comment ID. 65 65 * @return string Avatar with the user name. 66 66 */ 67 public function floated_admin_avatar( $name, $comment_ ID) {68 $comment = get_comment( $comment_ ID);67 public function floated_admin_avatar( $name, $comment_id ) { 68 $comment = get_comment( $comment_id ); 69 69 $avatar = get_avatar( $comment, 32, 'mystery' ); 70 70 return "$avatar $name"; … … 833 833 || ( 'unspam' === $action && 'spam' === $the_comment_status ) 834 834 ) { 835 if ( '1' == get_comment_meta( $comment->comment_ID, '_wp_trash_meta_status', true ) ) {835 if ( '1' === get_comment_meta( $comment->comment_ID, '_wp_trash_meta_status', true ) ) { 836 836 $action .= ' approve'; 837 837 } else { … … 1027 1027 * 1028 1028 * @param string $column_name The custom column's name. 1029 * @param int $comment_ IDThe custom column's unique ID number.1029 * @param int $comment_id The custom column's unique ID number. 1030 1030 */ 1031 1031 do_action( 'manage_comments_custom_column', $column_name, $comment->comment_ID );
Note: See TracChangeset
for help on using the changeset viewer.