Make WordPress Core

Changeset 25705


Ignore:
Timestamp:
10/06/2013 10:18:29 PM (11 years ago)
Author:
DrewAPicture
Message:

Inline documentation for hooks in wp-includes/class-wp-image-editor.php.

Props tomauger.
Fixes #25504

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-image-editor.php

    r25085 r25705  
    205205     */
    206206    public function set_quality( $quality ) {
     207        /**
     208        * Filter the default quality setting.
     209        *
     210        * @since 3.5.0
     211        *
     212        * @param int $quality Quality level between 0 (low) and 100 (high).
     213        */
    207214        $this->quality = apply_filters( 'wp_editor_set_quality', $quality );
    208215
     
    254261        // If not, choose a default instead.
    255262        if ( ! $this->supports_mime_type( $mime_type ) ) {
     263            /**
     264            * Filter default mime type prior to getting the file extension.
     265            *
     266            * @see wp_get_mime_types()
     267            *
     268            * @since 3.5.0
     269            *
     270            * @param string $mime_type Mime type string.
     271            */
    256272            $mime_type = apply_filters( 'image_editor_default_mime_type', $this->default_mime_type );
    257273            $new_ext = $this->get_extension( $mime_type );
Note: See TracChangeset for help on using the changeset viewer.