From 8c21607a972f66394fc7aba3cb8bfb5f09fef077 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Sun, 27 Oct 2019 19:33:12 +0000 Subject: [PATCH] Docs: Correct invalid hook docblock placement. See #48303 git-svn-id: https://develop.svn.wordpress.org/trunk@46604 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/blocks/latest-comments.php | 2 +- .../widgets/class-wp-widget-archives.php | 22 ++++++++--------- .../widgets/class-wp-widget-pages.php | 22 ++++++++--------- .../class-wp-widget-recent-comments.php | 22 ++++++++--------- .../widgets/class-wp-widget-recent-posts.php | 22 ++++++++--------- .../widgets/class-wp-widget-tag-cloud.php | 24 +++++++++---------- 6 files changed, 57 insertions(+), 57 deletions(-) diff --git a/src/wp-includes/blocks/latest-comments.php b/src/wp-includes/blocks/latest-comments.php index d68e89a152..cc0c234ec4 100644 --- a/src/wp-includes/blocks/latest-comments.php +++ b/src/wp-includes/blocks/latest-comments.php @@ -41,8 +41,8 @@ function wp_latest_comments_draft_or_post_title( $post = 0 ) { * @return string Returns the post content with latest comments added. */ function render_block_core_latest_comments( $attributes = array() ) { - // This filter is documented in wp-includes/widgets/class-wp-widget-recent-comments.php. $comments = get_comments( + // This filter is documented in wp-includes/widgets/class-wp-widget-recent-comments.php. apply_filters( 'widget_comments_args', array( diff --git a/src/wp-includes/widgets/class-wp-widget-archives.php b/src/wp-includes/widgets/class-wp-widget-archives.php index 4cf0db82c9..4767f673f4 100644 --- a/src/wp-includes/widgets/class-wp-widget-archives.php +++ b/src/wp-includes/widgets/class-wp-widget-archives.php @@ -124,18 +124,18 @@ class WP_Widget_Archives extends WP_Widget {