mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 12:44:31 +00:00
Add missing doc blocks to wp-image-editor*.php.
See #32444. git-svn-id: https://develop.svn.wordpress.org/trunk@32546 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -226,7 +226,7 @@ abstract class WP_Image_Editor {
|
||||
* @access public
|
||||
*
|
||||
* @param int $quality Compression Quality. Range: [1,100]
|
||||
* @return boolean|WP_Error True if set successfully; WP_Error on failure.
|
||||
* @return true|WP_Error True if set successfully; WP_Error on failure.
|
||||
*/
|
||||
public function set_quality( $quality = null ) {
|
||||
if ( null === $quality ) {
|
||||
@@ -445,7 +445,7 @@ abstract class WP_Image_Editor {
|
||||
* @access protected
|
||||
*
|
||||
* @param string $extension
|
||||
* @return string|boolean
|
||||
* @return string|false
|
||||
*/
|
||||
protected static function get_mime_type( $extension = null ) {
|
||||
if ( ! $extension )
|
||||
@@ -471,7 +471,7 @@ abstract class WP_Image_Editor {
|
||||
* @access protected
|
||||
*
|
||||
* @param string $mime_type
|
||||
* @return string|boolean
|
||||
* @return string|false
|
||||
*/
|
||||
protected static function get_extension( $mime_type = null ) {
|
||||
$extensions = explode( '|', array_search( $mime_type, wp_get_mime_types() ) );
|
||||
|
||||
Reference in New Issue
Block a user