From e033cb93bc98bb3706d96f612b6a46c338cf6aac Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sun, 6 Oct 2013 22:19:10 +0000 Subject: [PATCH] Inline documentation for hooks in wp-includes/class-wp-image-editor.php. Props tomauger. Fixes #25504 Built from https://develop.svn.wordpress.org/trunk@25705 git-svn-id: http://core.svn.wordpress.org/trunk@25619 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-image-editor.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/wp-includes/class-wp-image-editor.php b/wp-includes/class-wp-image-editor.php index fa2da97c8c..e4b2ba915c 100644 --- a/wp-includes/class-wp-image-editor.php +++ b/wp-includes/class-wp-image-editor.php @@ -204,6 +204,13 @@ abstract class WP_Image_Editor { * @return boolean */ public function set_quality( $quality ) { + /** + * Filter the default quality setting. + * + * @since 3.5.0 + * + * @param int $quality Quality level between 0 (low) and 100 (high). + */ $this->quality = apply_filters( 'wp_editor_set_quality', $quality ); return ( (bool) $this->quality ); @@ -253,6 +260,15 @@ abstract class WP_Image_Editor { // Double-check that the mime-type selected is supported by the editor. // If not, choose a default instead. if ( ! $this->supports_mime_type( $mime_type ) ) { + /** + * Filter default mime type prior to getting the file extension. + * + * @see wp_get_mime_types() + * + * @since 3.5.0 + * + * @param string $mime_type Mime type string. + */ $mime_type = apply_filters( 'image_editor_default_mime_type', $this->default_mime_type ); $new_ext = $this->get_extension( $mime_type ); }