Docs: Fix various filter documentation.

See #38462, #41017


git-svn-id: https://develop.svn.wordpress.org/trunk@41215 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2017-08-03 14:33:19 +00:00
parent 9296c9025a
commit 9f180065d6
4 changed files with 7 additions and 6 deletions

View File

@ -217,6 +217,7 @@ function wp_generate_attachment_metadata( $attachment_id, $file ) {
* @since 4.7.0
*
* @param array $fallback_sizes An array of image size names.
* @param array $metadata Current attachment metadata.
*/
$fallback_sizes = apply_filters( 'fallback_intermediate_image_sizes', $fallback_sizes, $metadata );

View File

@ -445,8 +445,8 @@ class WP_Comment_Query {
*
* @since 3.1.0
*
* @param array $results An array of comments.
* @param WP_Comment_Query &$this Current instance of WP_Comment_Query, passed by reference.
* @param array $_comments An array of comments.
* @param WP_Comment_Query &$this Current instance of WP_Comment_Query, passed by reference.
*/
$_comments = apply_filters_ref_array( 'the_comments', array( $_comments, &$this ) );

View File

@ -258,8 +258,8 @@ class WP_Network_Query {
*
* @since 4.6.0
*
* @param array $results An array of networks.
* @param WP_Network_Query &$this Current instance of WP_Network_Query, passed by reference.
* @param array $_networks An array of WP_Network objects.
* @param WP_Network_Query &$this Current instance of WP_Network_Query, passed by reference.
*/
$_networks = apply_filters_ref_array( 'the_networks', array( $_networks, &$this ) );

View File

@ -302,8 +302,8 @@ class WP_Site_Query {
*
* @since 4.6.0
*
* @param array $results An array of sites.
* @param WP_Site_Query &$this Current instance of WP_Site_Query, passed by reference.
* @param array $_sites An array of WP_Site objects.
* @param WP_Site_Query &$this Current instance of WP_Site_Query, passed by reference.
*/
$_sites = apply_filters_ref_array( 'the_sites', array( $_sites, &$this ) );