From a596bd6848cbb685120d2ec6437346c92b92a3f0 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 11 Aug 2024 21:10:13 +0000 Subject: [PATCH] Docs: Switch canonical location for the `comment_row_actions` filter. This aims to bring consistency with the other `*_row_actions` filters. Follow-up to [6705], [8217], [9103], [15491], [26138], [27669]. See #61608. Built from https://develop.svn.wordpress.org/trunk@58883 git-svn-id: http://core.svn.wordpress.org/trunk@58279 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-comments-list-table.php | 11 ++++++++++- wp-admin/includes/dashboard.php | 12 +----------- wp-includes/version.php | 2 +- 3 files changed, 12 insertions(+), 13 deletions(-) diff --git a/wp-admin/includes/class-wp-comments-list-table.php b/wp-admin/includes/class-wp-comments-list-table.php index 6c45a4eb7c..9b46512c24 100644 --- a/wp-admin/includes/class-wp-comments-list-table.php +++ b/wp-admin/includes/class-wp-comments-list-table.php @@ -847,7 +847,16 @@ class WP_Comments_List_Table extends WP_List_Table { ); } - /** This filter is documented in wp-admin/includes/dashboard.php */ + /** + * Filters the action links displayed for each comment in the Comments list table. + * + * @since 2.6.0 + * + * @param string[] $actions An array of comment actions. Default actions include: + * 'Approve', 'Unapprove', 'Edit', 'Reply', 'Spam', + * 'Delete', and 'Trash'. + * @param WP_Comment $comment The comment object. + */ $actions = apply_filters( 'comment_row_actions', array_filter( $actions ), $comment ); $always_visible = false; diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index 022a00174c..84514015e2 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -800,17 +800,7 @@ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) { __( 'View' ) ); - /** - * Filters the action links displayed for each comment in the 'Recent Comments' - * dashboard widget. - * - * @since 2.6.0 - * - * @param string[] $actions An array of comment actions. Default actions include: - * 'Approve', 'Unapprove', 'Edit', 'Reply', 'Spam', - * 'Delete', and 'Trash'. - * @param WP_Comment $comment The comment object. - */ + /** This filter is documented in wp-admin/includes/class-wp-comments-list-table.php */ $actions = apply_filters( 'comment_row_actions', array_filter( $actions ), $comment ); $i = 0; diff --git a/wp-includes/version.php b/wp-includes/version.php index e1da5b3a51..bc765841e1 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-alpha-58882'; +$wp_version = '6.7-alpha-58883'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.