Docs: Correct invalid hook docblock placement.
See #48303 git-svn-id: https://develop.svn.wordpress.org/trunk@46604 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b422cc2ef6
commit
8c21607a97
@ -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(
|
||||
|
@ -124,18 +124,18 @@ class WP_Widget_Archives extends WP_Widget {
|
||||
<?php } else { ?>
|
||||
<ul>
|
||||
<?php
|
||||
/**
|
||||
* Filters the arguments for the Archives widget.
|
||||
*
|
||||
* @since 2.8.0
|
||||
* @since 4.9.0 Added the `$instance` parameter.
|
||||
*
|
||||
* @see wp_get_archives()
|
||||
*
|
||||
* @param array $args An array of Archives option arguments.
|
||||
* @param array $instance Array of settings for the current widget.
|
||||
*/
|
||||
wp_get_archives(
|
||||
/**
|
||||
* Filters the arguments for the Archives widget.
|
||||
*
|
||||
* @since 2.8.0
|
||||
* @since 4.9.0 Added the `$instance` parameter.
|
||||
*
|
||||
* @see wp_get_archives()
|
||||
*
|
||||
* @param array $args An array of Archives option arguments.
|
||||
* @param array $instance Array of settings for the current widget.
|
||||
*/
|
||||
apply_filters(
|
||||
'widget_archives_args',
|
||||
array(
|
||||
|
@ -60,18 +60,18 @@ class WP_Widget_Pages extends WP_Widget {
|
||||
$sortby = 'menu_order, post_title';
|
||||
}
|
||||
|
||||
/**
|
||||
* Filters the arguments for the Pages widget.
|
||||
*
|
||||
* @since 2.8.0
|
||||
* @since 4.9.0 Added the `$instance` parameter.
|
||||
*
|
||||
* @see wp_list_pages()
|
||||
*
|
||||
* @param array $args An array of arguments to retrieve the pages list.
|
||||
* @param array $instance Array of settings for the current widget.
|
||||
*/
|
||||
$out = wp_list_pages(
|
||||
/**
|
||||
* Filters the arguments for the Pages widget.
|
||||
*
|
||||
* @since 2.8.0
|
||||
* @since 4.9.0 Added the `$instance` parameter.
|
||||
*
|
||||
* @see wp_list_pages()
|
||||
*
|
||||
* @param array $args An array of arguments to retrieve the pages list.
|
||||
* @param array $instance Array of settings for the current widget.
|
||||
*/
|
||||
apply_filters(
|
||||
'widget_pages_args',
|
||||
array(
|
||||
|
@ -88,18 +88,18 @@ class WP_Widget_Recent_Comments extends WP_Widget {
|
||||
$number = 5;
|
||||
}
|
||||
|
||||
/**
|
||||
* Filters the arguments for the Recent Comments widget.
|
||||
*
|
||||
* @since 3.4.0
|
||||
* @since 4.9.0 Added the `$instance` parameter.
|
||||
*
|
||||
* @see WP_Comment_Query::query() for information on accepted arguments.
|
||||
*
|
||||
* @param array $comment_args An array of arguments used to retrieve the recent comments.
|
||||
* @param array $instance Array of settings for the current widget.
|
||||
*/
|
||||
$comments = get_comments(
|
||||
/**
|
||||
* Filters the arguments for the Recent Comments widget.
|
||||
*
|
||||
* @since 3.4.0
|
||||
* @since 4.9.0 Added the `$instance` parameter.
|
||||
*
|
||||
* @see WP_Comment_Query::query() for information on accepted arguments.
|
||||
*
|
||||
* @param array $comment_args An array of arguments used to retrieve the recent comments.
|
||||
* @param array $instance Array of settings for the current widget.
|
||||
*/
|
||||
apply_filters(
|
||||
'widget_comments_args',
|
||||
array(
|
||||
|
@ -56,18 +56,18 @@ class WP_Widget_Recent_Posts extends WP_Widget {
|
||||
}
|
||||
$show_date = isset( $instance['show_date'] ) ? $instance['show_date'] : false;
|
||||
|
||||
/**
|
||||
* Filters the arguments for the Recent Posts widget.
|
||||
*
|
||||
* @since 3.4.0
|
||||
* @since 4.9.0 Added the `$instance` parameter.
|
||||
*
|
||||
* @see WP_Query::get_posts()
|
||||
*
|
||||
* @param array $args An array of arguments used to retrieve the recent posts.
|
||||
* @param array $instance Array of settings for the current widget.
|
||||
*/
|
||||
$r = new WP_Query(
|
||||
/**
|
||||
* Filters the arguments for the Recent Posts widget.
|
||||
*
|
||||
* @since 3.4.0
|
||||
* @since 4.9.0 Added the `$instance` parameter.
|
||||
*
|
||||
* @see WP_Query::get_posts()
|
||||
*
|
||||
* @param array $args An array of arguments used to retrieve the recent posts.
|
||||
* @param array $instance Array of settings for the current widget.
|
||||
*/
|
||||
apply_filters(
|
||||
'widget_posts_args',
|
||||
array(
|
||||
|
@ -54,19 +54,19 @@ class WP_Widget_Tag_Cloud extends WP_Widget {
|
||||
|
||||
$show_count = ! empty( $instance['count'] );
|
||||
|
||||
/**
|
||||
* Filters the taxonomy used in the Tag Cloud widget.
|
||||
*
|
||||
* @since 2.8.0
|
||||
* @since 3.0.0 Added taxonomy drop-down.
|
||||
* @since 4.9.0 Added the `$instance` parameter.
|
||||
*
|
||||
* @see wp_tag_cloud()
|
||||
*
|
||||
* @param array $args Args used for the tag cloud widget.
|
||||
* @param array $instance Array of settings for the current widget.
|
||||
*/
|
||||
$tag_cloud = wp_tag_cloud(
|
||||
/**
|
||||
* Filters the taxonomy used in the Tag Cloud widget.
|
||||
*
|
||||
* @since 2.8.0
|
||||
* @since 3.0.0 Added taxonomy drop-down.
|
||||
* @since 4.9.0 Added the `$instance` parameter.
|
||||
*
|
||||
* @see wp_tag_cloud()
|
||||
*
|
||||
* @param array $args Args used for the tag cloud widget.
|
||||
* @param array $instance Array of settings for the current widget.
|
||||
*/
|
||||
apply_filters(
|
||||
'widget_tag_cloud_args',
|
||||
array(
|
||||
|
Loading…
Reference in New Issue
Block a user