Skip to content
Closed

Test PR #12960

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/wp-admin/includes/dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -1003,10 +1003,12 @@ function wp_dashboard_recent_posts( $args ) {
* Filters the query arguments used for the Recent Posts widget.
*
* @since 4.2.0
* @since 6.9.0 Added the `$id` parameter.
*
* @param array $query_args The arguments passed to WP_Query to produce the list of posts.
* @param array $query_args The arguments passed to WP_Query to produce the list of posts.
* @param string $id The ID of the widget.
*/
$query_args = apply_filters( 'dashboard_recent_posts_query_args', $query_args );
$query_args = apply_filters( 'dashboard_recent_posts_query_args', $query_args, $args['id'] );

$posts = new WP_Query( $query_args );

Expand Down
Loading