From eb83bf3700c08baedff78fb0cb7b4d17e56430b3 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sun, 22 May 2016 18:32:27 +0000 Subject: [PATCH] Docs: Standardize filter docs in wp-includes/media.php to use third-person singular verbs per the inline documentation standards for PHP. See #36913. Built from https://develop.svn.wordpress.org/trunk@37505 git-svn-id: http://core.svn.wordpress.org/trunk@37473 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/media.php | 92 ++++++++++++++++++++--------------------- wp-includes/version.php | 2 +- 2 files changed, 47 insertions(+), 47 deletions(-) diff --git a/wp-includes/media.php b/wp-includes/media.php index 9f35f798e1..a8e322769a 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -95,7 +95,7 @@ function image_constrain_size_for_editor( $width, $height, $size = 'medium', $co } /** - * Filter the maximum image size dimensions for the editor. + * Filters the maximum image size dimensions for the editor. * * @since 2.5.0 * @@ -168,7 +168,7 @@ function image_downsize( $id, $size = 'medium' ) { return false; /** - * Filter whether to preempt the output of image_downsize(). + * Filters whether to preempt the output of image_downsize(). * * Passing a truthy value to the filter will effectively short-circuit * down-sizing the image, returning that value as output instead. @@ -339,7 +339,7 @@ function get_image_tag( $id, $alt, $title, $align, $size = 'medium' ) { $class = 'align' . esc_attr($align) .' size-' . esc_attr($size) . ' wp-image-' . $id; /** - * Filter the value of the attachment's image tag class attribute. + * Filters the value of the attachment's image tag class attribute. * * @since 2.6.0 * @@ -354,7 +354,7 @@ function get_image_tag( $id, $alt, $title, $align, $size = 'medium' ) { $html = '' . esc_attr($alt) . ''; /** - * Filter the HTML content for the image tag. + * Filters the HTML content for the image tag. * * @since 2.6.0 * @@ -431,7 +431,7 @@ function wp_constrain_dimensions( $current_width, $current_height, $max_width = } /** - * Filter dimensions to constrain down-sampled images to. + * Filters dimensions to constrain down-sampled images to. * * @since 4.1.0 * @@ -477,7 +477,7 @@ function image_resize_dimensions( $orig_w, $orig_h, $dest_w, $dest_h, $crop = fa return false; /** - * Filter whether to preempt calculating the image resize dimensions. + * Filters whether to preempt calculating the image resize dimensions. * * Passing a non-null value to the filter will effectively short-circuit * image_resize_dimensions(), returning that value instead. @@ -689,7 +689,7 @@ function image_get_intermediate_size( $post_id, $size = 'thumbnail' ) { } /** - * Filter the output of image_get_intermediate_size() + * Filters the output of image_get_intermediate_size() * * @since 4.4.0 * @@ -720,7 +720,7 @@ function get_intermediate_image_sizes() { $image_sizes = array_merge( $image_sizes, array_keys( $_wp_additional_image_sizes ) ); /** - * Filter the list of intermediate image sizes. + * Filters the list of intermediate image sizes. * * @since 2.5.0 * @@ -767,7 +767,7 @@ function wp_get_attachment_image_src( $attachment_id, $size = 'thumbnail', $icon } } /** - * Filter the image src result. + * Filters the image src result. * * @since 4.3.0 * @@ -840,7 +840,7 @@ function wp_get_attachment_image($attachment_id, $size = 'thumbnail', $icon = fa } /** - * Filter the list of attachment image attributes. + * Filters the list of attachment image attributes. * * @since 2.8.0 * @@ -1043,7 +1043,7 @@ function wp_calculate_image_srcset( $size_array, $image_src, $image_meta, $attac $image_edited = preg_match( '/-e[0-9]{13}/', wp_basename( $image_src ), $image_edit_hash ); /** - * Filter the maximum image width to be included in a 'srcset' attribute. + * Filters the maximum image width to be included in a 'srcset' attribute. * * @since 4.4.0 * @@ -1085,7 +1085,7 @@ function wp_calculate_image_srcset( $size_array, $image_src, $image_meta, $attac } /* - * Filter out images that are wider than '$max_srcset_image_width' unless + * Filters out images that are wider than '$max_srcset_image_width' unless * that file is in the 'src' attribute. */ if ( $max_srcset_image_width && $image['width'] > $max_srcset_image_width && ! $is_src ) { @@ -1124,7 +1124,7 @@ function wp_calculate_image_srcset( $size_array, $image_src, $image_meta, $attac } /** - * Filter an image's 'srcset' sources. + * Filters an image's 'srcset' sources. * * @since 4.4.0 * @@ -1232,7 +1232,7 @@ function wp_calculate_image_sizes( $size, $image_src = null, $image_meta = null, $sizes = sprintf( '(max-width: %1$dpx) 100vw, %1$dpx', $width ); /** - * Filter the output of 'wp_calculate_image_sizes()'. + * Filters the output of 'wp_calculate_image_sizes()'. * * @since 4.4.0 * @@ -1467,7 +1467,7 @@ function img_caption_shortcode( $attr, $content = null ) { } /** - * Filter the default caption shortcode output. + * Filters the default caption shortcode output. * * If the filtered output isn't empty, it will be used instead of generating * the default caption template. @@ -1506,7 +1506,7 @@ function img_caption_shortcode( $attr, $content = null ) { $width = $html5 ? $atts['width'] : ( 10 + $atts['width'] ); /** - * Filter the width of an image's caption. + * Filters the width of an image's caption. * * By default, the caption is 10 pixels greater than the width of the image, * to prevent post content from running up against a floated image. @@ -1589,7 +1589,7 @@ function gallery_shortcode( $attr ) { } /** - * Filter the default gallery shortcode output. + * Filters the default gallery shortcode output. * * If the filtered output isn't empty, it will be used instead of generating * the default gallery template. @@ -1673,7 +1673,7 @@ function gallery_shortcode( $attr ) { $gallery_style = ''; /** - * Filter whether to print default gallery styles. + * Filters whether to print default gallery styles. * * @since 3.1.0 * @@ -1707,7 +1707,7 @@ function gallery_shortcode( $attr ) { $gallery_div = "