Make WordPress Core


Ignore:
Timestamp:
12/04/2013 11:31:21 PM (11 years ago)
Author:
DrewAPicture
Message:

Hook docs fixes following [26645].

See #25721.

File:
1 edited

Legend:

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

    r26645 r26648  
    214214
    215215        /**
    216          * Filter the default quality setting.
     216         * Filter the default image compression quality setting.
    217217         *
    218218         * @since 3.5.0
     
    222222        $quality = apply_filters( 'wp_editor_set_quality', $quality, $this->mime_type );
    223223
    224         /**
    225          * Filter the JPEG quality for backwards compatibilty.
    226          *
    227          * @since 2.5.0
    228          *
    229          * @param int $quality Quality level between 0 (low) and 100 (high) of the JPEG.
    230          * @param string The context of the filter.
    231          */
    232224        if ( 'image/jpeg' == $this->mime_type ) {
     225            /**
     226             * Filter the JPEG compression quality for backward-compatibility.
     227             *
     228             * The filter is evaluated under two contexts: 'image_resize', and 'edit_image',
     229             * (when a JPEG image is saved to file).
     230             *
     231             * @since 2.5.0
     232             *
     233             * @param int    $quality Quality level between 0 (low) and 100 (high) of the JPEG.
     234             * @param string $context Context of the filter.
     235             */
    233236            $quality = apply_filters( 'jpeg_quality', $quality, 'image_resize' );
    234237
Note: See TracChangeset for help on using the changeset viewer.