Make WordPress Core

Changeset 58883


Ignore:
Timestamp:
08/11/2024 09:08:06 PM (2 years ago)
Author:
SergeyBiryukov
Message:

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.

Location:
trunk/src/wp-admin/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-comments-list-table.php

    r58129 r58883  
    848848                }
    849849
    850                 /** This filter is documented in wp-admin/includes/dashboard.php */
     850                /**
     851                 * Filters the action links displayed for each comment in the Comments list table.
     852                 *
     853                 * @since 2.6.0
     854                 *
     855                 * @param string[]   $actions An array of comment actions. Default actions include:
     856                 *                            'Approve', 'Unapprove', 'Edit', 'Reply', 'Spam',
     857                 *                            'Delete', and 'Trash'.
     858                 * @param WP_Comment $comment The comment object.
     859                 */
    851860                $actions = apply_filters( 'comment_row_actions', array_filter( $actions ), $comment );
    852861
  • trunk/src/wp-admin/includes/dashboard.php

    r58813 r58883  
    801801                );
    802802
    803                 /**
    804                  * Filters the action links displayed for each comment in the 'Recent Comments'
    805                  * dashboard widget.
    806                  *
    807                  * @since 2.6.0
    808                  *
    809                  * @param string[]   $actions An array of comment actions. Default actions include:
    810                  *                            'Approve', 'Unapprove', 'Edit', 'Reply', 'Spam',
    811                  *                            'Delete', and 'Trash'.
    812                  * @param WP_Comment $comment The comment object.
    813                  */
     803                /** This filter is documented in wp-admin/includes/class-wp-comments-list-table.php */
    814804                $actions = apply_filters( 'comment_row_actions', array_filter( $actions ), $comment );
    815805
Note: See TracChangeset for help on using the changeset viewer.