Docs: Correct invalid hook docblock placement.
See #48303 Built from https://develop.svn.wordpress.org/trunk@46604 git-svn-id: http://core.svn.wordpress.org/trunk@46401 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c8f91f77ac
commit
f243cd573c
|
@ -41,8 +41,8 @@ function wp_latest_comments_draft_or_post_title( $post = 0 ) {
|
||||||
* @return string Returns the post content with latest comments added.
|
* @return string Returns the post content with latest comments added.
|
||||||
*/
|
*/
|
||||||
function render_block_core_latest_comments( $attributes = array() ) {
|
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(
|
$comments = get_comments(
|
||||||
|
// This filter is documented in wp-includes/widgets/class-wp-widget-recent-comments.php.
|
||||||
apply_filters(
|
apply_filters(
|
||||||
'widget_comments_args',
|
'widget_comments_args',
|
||||||
array(
|
array(
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.4-alpha-46603';
|
$wp_version = '5.4-alpha-46604';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
|
@ -124,6 +124,7 @@ class WP_Widget_Archives extends WP_Widget {
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<ul>
|
<ul>
|
||||||
<?php
|
<?php
|
||||||
|
wp_get_archives(
|
||||||
/**
|
/**
|
||||||
* Filters the arguments for the Archives widget.
|
* Filters the arguments for the Archives widget.
|
||||||
*
|
*
|
||||||
|
@ -135,7 +136,6 @@ class WP_Widget_Archives extends WP_Widget {
|
||||||
* @param array $args An array of Archives option arguments.
|
* @param array $args An array of Archives option arguments.
|
||||||
* @param array $instance Array of settings for the current widget.
|
* @param array $instance Array of settings for the current widget.
|
||||||
*/
|
*/
|
||||||
wp_get_archives(
|
|
||||||
apply_filters(
|
apply_filters(
|
||||||
'widget_archives_args',
|
'widget_archives_args',
|
||||||
array(
|
array(
|
||||||
|
|
|
@ -60,6 +60,7 @@ class WP_Widget_Pages extends WP_Widget {
|
||||||
$sortby = 'menu_order, post_title';
|
$sortby = 'menu_order, post_title';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$out = wp_list_pages(
|
||||||
/**
|
/**
|
||||||
* Filters the arguments for the Pages widget.
|
* Filters the arguments for the Pages widget.
|
||||||
*
|
*
|
||||||
|
@ -71,7 +72,6 @@ class WP_Widget_Pages extends WP_Widget {
|
||||||
* @param array $args An array of arguments to retrieve the pages list.
|
* @param array $args An array of arguments to retrieve the pages list.
|
||||||
* @param array $instance Array of settings for the current widget.
|
* @param array $instance Array of settings for the current widget.
|
||||||
*/
|
*/
|
||||||
$out = wp_list_pages(
|
|
||||||
apply_filters(
|
apply_filters(
|
||||||
'widget_pages_args',
|
'widget_pages_args',
|
||||||
array(
|
array(
|
||||||
|
|
|
@ -88,6 +88,7 @@ class WP_Widget_Recent_Comments extends WP_Widget {
|
||||||
$number = 5;
|
$number = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$comments = get_comments(
|
||||||
/**
|
/**
|
||||||
* Filters the arguments for the Recent Comments widget.
|
* Filters the arguments for the Recent Comments widget.
|
||||||
*
|
*
|
||||||
|
@ -99,7 +100,6 @@ class WP_Widget_Recent_Comments extends WP_Widget {
|
||||||
* @param array $comment_args An array of arguments used to retrieve the recent comments.
|
* @param array $comment_args An array of arguments used to retrieve the recent comments.
|
||||||
* @param array $instance Array of settings for the current widget.
|
* @param array $instance Array of settings for the current widget.
|
||||||
*/
|
*/
|
||||||
$comments = get_comments(
|
|
||||||
apply_filters(
|
apply_filters(
|
||||||
'widget_comments_args',
|
'widget_comments_args',
|
||||||
array(
|
array(
|
||||||
|
|
|
@ -56,6 +56,7 @@ class WP_Widget_Recent_Posts extends WP_Widget {
|
||||||
}
|
}
|
||||||
$show_date = isset( $instance['show_date'] ) ? $instance['show_date'] : false;
|
$show_date = isset( $instance['show_date'] ) ? $instance['show_date'] : false;
|
||||||
|
|
||||||
|
$r = new WP_Query(
|
||||||
/**
|
/**
|
||||||
* Filters the arguments for the Recent Posts widget.
|
* Filters the arguments for the Recent Posts widget.
|
||||||
*
|
*
|
||||||
|
@ -67,7 +68,6 @@ class WP_Widget_Recent_Posts extends WP_Widget {
|
||||||
* @param array $args An array of arguments used to retrieve the recent posts.
|
* @param array $args An array of arguments used to retrieve the recent posts.
|
||||||
* @param array $instance Array of settings for the current widget.
|
* @param array $instance Array of settings for the current widget.
|
||||||
*/
|
*/
|
||||||
$r = new WP_Query(
|
|
||||||
apply_filters(
|
apply_filters(
|
||||||
'widget_posts_args',
|
'widget_posts_args',
|
||||||
array(
|
array(
|
||||||
|
|
|
@ -54,6 +54,7 @@ class WP_Widget_Tag_Cloud extends WP_Widget {
|
||||||
|
|
||||||
$show_count = ! empty( $instance['count'] );
|
$show_count = ! empty( $instance['count'] );
|
||||||
|
|
||||||
|
$tag_cloud = wp_tag_cloud(
|
||||||
/**
|
/**
|
||||||
* Filters the taxonomy used in the Tag Cloud widget.
|
* Filters the taxonomy used in the Tag Cloud widget.
|
||||||
*
|
*
|
||||||
|
@ -66,7 +67,6 @@ class WP_Widget_Tag_Cloud extends WP_Widget {
|
||||||
* @param array $args Args used for the tag cloud widget.
|
* @param array $args Args used for the tag cloud widget.
|
||||||
* @param array $instance Array of settings for the current widget.
|
* @param array $instance Array of settings for the current widget.
|
||||||
*/
|
*/
|
||||||
$tag_cloud = wp_tag_cloud(
|
|
||||||
apply_filters(
|
apply_filters(
|
||||||
'widget_tag_cloud_args',
|
'widget_tag_cloud_args',
|
||||||
array(
|
array(
|
||||||
|
|
Loading…
Reference in New Issue