diff -r be944660c56a -r 3d72ae0968f4 wp/wp-admin/includes/class-wp-comments-list-table.php --- a/wp/wp-admin/includes/class-wp-comments-list-table.php Wed Sep 21 18:19:35 2022 +0200 +++ b/wp/wp-admin/includes/class-wp-comments-list-table.php Tue Sep 27 16:37:53 2022 +0200 @@ -651,17 +651,18 @@ * Generate and display row actions links. * * @since 4.3.0 + * @since 5.9.0 Renamed `$comment` to `$item` to match parent class for PHP 8 named parameter support. * * @global string $comment_status Status for the current listed comments. * - * @param WP_Comment $comment The comment object. + * @param WP_Comment $item The comment object. * @param string $column_name Current column name. * @param string $primary Primary column name. * @return string Row actions output for comments. An empty string * if the current column is not the primary column, * or if the current user cannot edit the comment. */ - protected function handle_row_actions( $comment, $column_name, $primary ) { + protected function handle_row_actions( $item, $column_name, $primary ) { global $comment_status; if ( $primary !== $column_name ) { @@ -672,6 +673,8 @@ return ''; } + // Restores the more descriptive, specific name for use within this method. + $comment = $item; $the_comment_status = wp_get_comment_status( $comment ); $out = ''; @@ -868,9 +871,14 @@ } /** - * @param WP_Comment $comment The comment object. + * @since 5.9.0 Renamed `$comment` to `$item` to match parent class for PHP 8 named parameter support. + * + * @param WP_Comment $item The comment object. */ - public function column_cb( $comment ) { + public function column_cb( $item ) { + // Restores the more descriptive, specific name for use within this method. + $comment = $item; + if ( $this->user_can ) { ?> @@ -911,7 +919,7 @@
- +