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.

Built from https://develop.svn.wordpress.org/trunk@26650


git-svn-id: http://core.svn.wordpress.org/trunk@26540 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2013-12-04 23:51:19 +00:00
parent 1ae48b7644
commit e59ee5e974
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 * @since 3.5.0
* *
* @param string $limit Maximum memory limit to allocate for images. Default value * @param int|string $limit Maximum memory limit to allocate for images. Default WP_MAX_MEMORY_LIMIT.
* of WP_MAX_MEMORY_LIMIT is '256M'. * Accepts an integer (bytes), or a shorthand string notation, such as '256M'.
*/ */
// Set artificially high because GD uses uncompressed images in memory // Set artificially high because GD uses uncompressed images in memory
@ini_set( 'memory_limit', apply_filters( 'image_memory_limit', WP_MAX_MEMORY_LIMIT ) ); @ini_set( 'memory_limit', apply_filters( 'image_memory_limit', WP_MAX_MEMORY_LIMIT ) );

View File

@ -218,6 +218,7 @@ abstract class WP_Image_Editor {
* @since 3.5.0 * @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 ); $quality = apply_filters( 'wp_editor_set_quality', $quality, $this->mime_type );