diff -r be944660c56a -r 3d72ae0968f4 wp/wp-includes/class-wp-image-editor.php --- a/wp/wp-includes/class-wp-image-editor.php Wed Sep 21 18:19:35 2022 +0200 +++ b/wp/wp-includes/class-wp-image-editor.php Tue Sep 27 16:37:53 2022 +0200 @@ -77,8 +77,8 @@ * @since 3.5.0 * @abstract * - * @param string $destfilename - * @param string $mime_type + * @param string $destfilename Optional. Destination filename. Default null. + * @param string $mime_type Optional. The mime-type. Default null. * @return array|WP_Error {'path'=>string, 'file'=>string, 'width'=>int, 'height'=>int, 'mime-type'=>string} */ abstract public function save( $destfilename = null, $mime_type = null ); @@ -109,7 +109,7 @@ * @param array $sizes { * An array of image size arrays. Default sizes are 'small', 'medium', 'large'. * - * @type array $size { + * @type array ...$0 { * @type int $width Image width. * @type int $height Image height. * @type bool $crop Optional. Whether to crop the image. Default false. @@ -175,7 +175,7 @@ * * @since 3.5.0 * - * @return array { + * @return int[] { * Dimensions of the image. * * @type int $width The image width. @@ -363,7 +363,6 @@ * } * @param string $filename Path to the image. * @param string $mime_type The source image mime type. - * } */ $output_format = apply_filters( 'image_editor_output_format', array(), $filename, $mime_type ); @@ -486,7 +485,7 @@ } /** - * Filters the `$orientation` value to correct it before rotating or to prevemnt rotating the image. + * Filters the `$orientation` value to correct it before rotating or to prevent rotating the image. * * @since 5.3.0 * @@ -549,12 +548,12 @@ * * @since 3.5.0 * - * @param string|stream $filename - * @param callable $function - * @param array $arguments + * @param string $filename + * @param callable $callback + * @param array $arguments * @return bool */ - protected function make_image( $filename, $function, $arguments ) { + protected function make_image( $filename, $callback, $arguments ) { $stream = wp_is_stream( $filename ); if ( $stream ) { ob_start(); @@ -563,7 +562,7 @@ wp_mkdir_p( dirname( $filename ) ); } - $result = call_user_func_array( $function, $arguments ); + $result = call_user_func_array( $callback, $arguments ); if ( $result && $stream ) { $contents = ob_get_contents();