Image editor doc fixes. props DH-Shredder. see #6821.
git-svn-id: https://develop.svn.wordpress.org/trunk@23038 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0fa07588c5
commit
a033ad1ab2
@ -176,7 +176,7 @@ class WP_Image_Editor_GD extends WP_Image_Editor {
|
||||
* @since 3.5.0
|
||||
* @access public
|
||||
*
|
||||
* @param array $sizes { {width, height}, ... }
|
||||
* @param array $sizes { {'width'=>int, 'height'=>int, 'crop'=>bool}, ... }
|
||||
* @return array
|
||||
*/
|
||||
public function multi_resize( $sizes ) {
|
||||
|
@ -248,7 +248,7 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor {
|
||||
* @since 3.5.0
|
||||
* @access public
|
||||
*
|
||||
* @param array $sizes
|
||||
* @param array $sizes { {'width'=>int, 'height'=>int, 'crop'=>bool}, ... }
|
||||
* @return array
|
||||
*/
|
||||
public function multi_resize( $sizes ) {
|
||||
|
@ -101,7 +101,7 @@ abstract class WP_Image_Editor {
|
||||
* @access public
|
||||
* @abstract
|
||||
*
|
||||
* @param array $sizes
|
||||
* @param array $sizes { {'width'=>int, 'height'=>int, 'crop'=>bool}, ... }
|
||||
* @return array
|
||||
*/
|
||||
abstract public function multi_resize( $sizes );
|
||||
|
@ -294,7 +294,7 @@ function wp_constrain_dimensions( $current_width, $current_height, $max_width=0,
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve calculated resized dimensions for use in imagecopyresampled().
|
||||
* Retrieve calculated resized dimensions for use in WP_Image_Editor.
|
||||
*
|
||||
* Calculate dimensions and coordinates for a resized image that fits within a
|
||||
* specified width and height. If $crop is true, the largest matching central
|
||||
|
Loading…
Reference in New Issue
Block a user