Two more hook docs fixes.

`image_memory_limit` filter:
* Go with int|string on the limit, and simply notate '256M' as an acceptable string value.

`wp_editor_set_quality` filter:
* Add a missing parameter description for the mime type.

See #25721.


git-svn-id: https://develop.svn.wordpress.org/trunk@26650 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Drew Jaynes 2013-12-04 23:50:33 +00:00
parent 2d254241c7
commit fa376b16cd
2 changed files with 4 additions and 3 deletions

View File

@ -91,8 +91,8 @@ class WP_Image_Editor_GD extends WP_Image_Editor {
*
* @since 3.5.0
*
* @param string $limit Maximum memory limit to allocate for images. Default value
* of WP_MAX_MEMORY_LIMIT is '256M'.
* @param int|string $limit Maximum memory limit to allocate for images. Default WP_MAX_MEMORY_LIMIT.
* Accepts an integer (bytes), or a shorthand string notation, such as '256M'.
*/
// Set artificially high because GD uses uncompressed images in memory
@ini_set( 'memory_limit', apply_filters( 'image_memory_limit', WP_MAX_MEMORY_LIMIT ) );

View File

@ -217,7 +217,8 @@ abstract class WP_Image_Editor {
*
* @since 3.5.0
*
* @param int $quality Quality level between 1 (low) and 100 (high).
* @param int $quality Quality level between 1 (low) and 100 (high).
* @param string $mime_type Image mime type.
*/
$quality = apply_filters( 'wp_editor_set_quality', $quality, $this->mime_type );