Clarify the behaviour of the `wp_editor_set_quality` and `jpeg_quality` filters.
Merges [30874] to the 4.1 branch. Props DH-Shredder See #29856 Built from https://develop.svn.wordpress.org/branches/4.1@30876 git-svn-id: http://core.svn.wordpress.org/branches/4.1@30864 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
296a23c662
commit
4812d2a5fa
|
@ -233,6 +233,11 @@ abstract class WP_Image_Editor {
|
|||
/**
|
||||
* Filter the default image compression quality setting.
|
||||
*
|
||||
* Applies only during initial editor instantiation, or when set_quality() is run
|
||||
* manually without the `$quality` argument.
|
||||
*
|
||||
* set_quality() has priority over the filter.
|
||||
*
|
||||
* @since 3.5.0
|
||||
*
|
||||
* @param int $quality Quality level between 1 (low) and 100 (high).
|
||||
|
@ -244,6 +249,11 @@ abstract class WP_Image_Editor {
|
|||
/**
|
||||
* Filter the JPEG compression quality for backward-compatibility.
|
||||
*
|
||||
* Applies only during initial editor instantiation, or when set_quality() is run
|
||||
* manually without the `$quality` argument.
|
||||
*
|
||||
* set_quality() has priority over the filter.
|
||||
*
|
||||
* The filter is evaluated under two contexts: 'image_resize', and 'edit_image',
|
||||
* (when a JPEG image is saved to file).
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue